gavo.formal.converters module

Adapters for converting to and from a type’s value according to an IConvertible protocol.

class gavo.formal.converters.BooleanToStringConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.DateToDateTupleConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.DateToStringConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
parseDate(value)[source]
toType(value)[source]
class gavo.formal.converters.DecimalToStringConverter(original)[source]

Bases: NumberToStringConverter

cast

alias of Decimal

class gavo.formal.converters.FloatToStringConverter(original)[source]

Bases: NumberToStringConverter

cast

alias of float

class gavo.formal.converters.ForceStringConverter(original)[source]

Bases: _Adapter

cast = None
fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.IntegerToStringConverter(original)[source]

Bases: NumberToStringConverter

cast

alias of int

class gavo.formal.converters.NullConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.NumberToStringConverter(original)[source]

Bases: _Adapter

cast = None
fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.SequenceToStringConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
toType(value)[source]
class gavo.formal.converters.TimeToStringConverter(original)[source]

Bases: _Adapter

fromType(value)[source]
parseTime(value)[source]
toType(value)[source]