Data type converters with locale and currency support.
Provides routines for converting data to and from strings. Simple example:
>>> from kiwi.datatypes import converter >>> converter.from_string(int, '1,234') '1234' >>> converter.from_string(float, '1,234') '1234.0' >>> converter.to_string(currency, currency('10.5')) '$10.50'
Class | Decimal | Undocumented |
Function | GetLocaleInfo 0 | Undocumented |
Function | GetLocaleInfo | Undocumented |
Class | ValidationError | Undocumented |
Class | ConverterRegistry | Undocumented |
Class | BaseConverter | Abstract converter used by all datatypes |
Class | _StringConverter | Undocumented |
Class | _UnicodeConverter | Undocumented |
Class | _IntConverter | Undocumented |
Class | _LongConverter | Undocumented |
Class | _BoolConverter | Undocumented |
Class | _FloatConverter | Undocumented |
Class | _DecimalConverter | Undocumented |
Class | _BaseDateTimeConverter | Abstract class for converting datatime objects to and from strings |
Class | _TimeConverter | Undocumented |
Class | _DateTimeConverter | Undocumented |
Class | _DateConverter | Undocumented |
Class | _ObjectConverter | Undocumented |
Class | _EnumConverter | Undocumented |
Function | lformat | Like locale.format but with grouping enabled |
Function | get_localeconv | Undocumented |
Function | filter_locale | Removes the locale specific data from the value string. |
Like locale.format but with grouping enabled
Removes the locale specific data from the value string. Currently we only remove the thousands separator and convert the decimal point. The returned value of this function can safely be passed to float()