This module provides commonly used codecs to parse RSS-related standard formats.
Codec to interpret boolean representation in strings e.g. 'true', 'no', and encode bool values back to string.
Parameters: |
---|
Codec that accepts only predefined fixed types of values:
gender = Enum(['male', 'female'])
Actually it doesn’t any encoding nor decoding, but it simply validates all values from XML and Python both.
Note that values have to consist of only strings.
Parameters: | values (collections.Iterable) – any iterable that yields all possible values |
---|
Codec to encode and decode integer numbers.
Codec to store datetime.datetime values to RFC 3339 format.
Parameters: | prefer_utc (bool) – normalize all timezones to UTC. False by default |
---|
Codec to encode/decode datetime.datetime values to/from RFC 822 format.