serializable.helpers
Module Contents
Classes
Base Helper. |
|
Base Helper. |
|
Base Helper. |
|
Base Helper. |
- class serializable.helpers.BaseHelper
Base Helper.
Inherit from this class and implement/override the needed functions!
This class does not provide any functionality, it is more like a Protocol with some fallback implementations.
- abstract classmethod serialize(o: Any) Any | str
general purpose serializer
- abstract classmethod deserialize(o: Any) Any
general purpose deserializer
- classmethod json_normalize(o: Any, *, view: Type[serializable.ViewType] | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any | None
json specific normalizer
- classmethod json_serialize(o: Any) str | Any
json specific serializer
- classmethod json_denormalize(o: Any, *, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
json specific denormalizer
- Parameters:
tCls – the class that was desired to denormalize to
pCls – tha prent class - as context
- classmethod json_deserialize(o: Any) Any
json specific deserializer
- classmethod xml_normalize(o: Any, *, element_name: str, view: Type[serializable.ViewType] | None, xmlns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) xml.etree.ElementTree.Element | Any | None
xml specific normalizer
- classmethod xml_serialize(o: Any) str | Any
xml specific serializer
- classmethod xml_denormalize(o: xml.etree.ElementTree.Element, *, default_ns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
xml specific denormalizer
- classmethod xml_deserialize(o: str | Any) Any
xml specific deserializer
- class serializable.helpers.Iso8601Date
Bases:
BaseHelper
Base Helper.
Inherit from this class and implement/override the needed functions!
This class does not provide any functionality, it is more like a Protocol with some fallback implementations.
- classmethod serialize(o: Any) str
general purpose serializer
- classmethod deserialize(o: Any) datetime.date
general purpose deserializer
- classmethod json_normalize(o: Any, *, view: Type[serializable.ViewType] | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any | None
json specific normalizer
- classmethod json_serialize(o: Any) str | Any
json specific serializer
- classmethod json_denormalize(o: Any, *, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
json specific denormalizer
- Parameters:
tCls – the class that was desired to denormalize to
pCls – tha prent class - as context
- classmethod json_deserialize(o: Any) Any
json specific deserializer
- classmethod xml_normalize(o: Any, *, element_name: str, view: Type[serializable.ViewType] | None, xmlns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) xml.etree.ElementTree.Element | Any | None
xml specific normalizer
- classmethod xml_serialize(o: Any) str | Any
xml specific serializer
- classmethod xml_denormalize(o: xml.etree.ElementTree.Element, *, default_ns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
xml specific denormalizer
- classmethod xml_deserialize(o: str | Any) Any
xml specific deserializer
- class serializable.helpers.XsdDate
Bases:
BaseHelper
Base Helper.
Inherit from this class and implement/override the needed functions!
This class does not provide any functionality, it is more like a Protocol with some fallback implementations.
- classmethod serialize(o: Any) str
general purpose serializer
- classmethod deserialize(o: Any) datetime.date
general purpose deserializer
- classmethod json_normalize(o: Any, *, view: Type[serializable.ViewType] | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any | None
json specific normalizer
- classmethod json_serialize(o: Any) str | Any
json specific serializer
- classmethod json_denormalize(o: Any, *, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
json specific denormalizer
- Parameters:
tCls – the class that was desired to denormalize to
pCls – tha prent class - as context
- classmethod json_deserialize(o: Any) Any
json specific deserializer
- classmethod xml_normalize(o: Any, *, element_name: str, view: Type[serializable.ViewType] | None, xmlns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) xml.etree.ElementTree.Element | Any | None
xml specific normalizer
- classmethod xml_serialize(o: Any) str | Any
xml specific serializer
- classmethod xml_denormalize(o: xml.etree.ElementTree.Element, *, default_ns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
xml specific denormalizer
- classmethod xml_deserialize(o: str | Any) Any
xml specific deserializer
- class serializable.helpers.XsdDateTime
Bases:
BaseHelper
Base Helper.
Inherit from this class and implement/override the needed functions!
This class does not provide any functionality, it is more like a Protocol with some fallback implementations.
- classmethod serialize(o: Any) str
general purpose serializer
- classmethod deserialize(o: Any) datetime.datetime
general purpose deserializer
- classmethod json_normalize(o: Any, *, view: Type[serializable.ViewType] | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any | None
json specific normalizer
- classmethod json_serialize(o: Any) str | Any
json specific serializer
- classmethod json_denormalize(o: Any, *, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
json specific denormalizer
- Parameters:
tCls – the class that was desired to denormalize to
pCls – tha prent class - as context
- classmethod json_deserialize(o: Any) Any
json specific deserializer
- classmethod xml_normalize(o: Any, *, element_name: str, view: Type[serializable.ViewType] | None, xmlns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) xml.etree.ElementTree.Element | Any | None
xml specific normalizer
- classmethod xml_serialize(o: Any) str | Any
xml specific serializer
- classmethod xml_denormalize(o: xml.etree.ElementTree.Element, *, default_ns: str | None, prop_info: serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
xml specific denormalizer
- classmethod xml_deserialize(o: str | Any) Any
xml specific deserializer