ObjectSerializationTool.Serializers package

Submodules

ObjectSerializationTool.Serializers.BuiltinAuxiliary module

class ObjectSerializationTool.Serializers.BuiltinAuxiliary.RangeSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[range]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('e81ed110-7c9d-4a0e-9be7-ff7af4ec44b1')
SUPPORTED_CLASS

alias of range

dump(_RangeSerializer__obj: range) tuple[bytes, bytes][source]
load(_RangeSerializer__raw: bytes) range[source]
class ObjectSerializationTool.Serializers.BuiltinAuxiliary.SliceSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[slice]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('a436fc1a-6461-4f7e-a7c8-bef9de93bb28')
SUPPORTED_CLASS

alias of slice

dump(_SliceSerializer__obj: slice) tuple[bytes, bytes][source]
load(_SliceSerializer__raw: bytes) slice[source]

ObjectSerializationTool.Serializers.BuiltinConstant module

class ObjectSerializationTool.Serializers.BuiltinConstant.EllipsisSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: ConstantSerializer[ellipsis]

CONSTANT: T = Ellipsis
SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('270844eb-02a9-4181-a570-3f9dd92d6d8e')
class ObjectSerializationTool.Serializers.BuiltinConstant.FalseSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: ConstantSerializer[bool]

CONSTANT: T = False
SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('56c644b1-023c-4439-82b0-195232261bff')
class ObjectSerializationTool.Serializers.BuiltinConstant.NoneSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: ConstantSerializer[None]

CONSTANT: T = None
SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('795fd075-9d75-4680-aca0-6ba6e5f3ed01')
class ObjectSerializationTool.Serializers.BuiltinConstant.NotImplementedSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: ConstantSerializer[NotImplementedType]

CONSTANT: T = NotImplemented
SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('dfdc4ad5-71fb-47ec-a397-813435ef1317')
class ObjectSerializationTool.Serializers.BuiltinConstant.TrueSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: ConstantSerializer[bool]

CONSTANT: T = True
SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('bfd6d5f3-b8b1-4f8c-b542-376a8744db83')

ObjectSerializationTool.Serializers.BuiltinMapping module

class ObjectSerializationTool.Serializers.BuiltinMapping.DictSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[dict]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('1cb3ca51-a6d1-4761-aaff-6a7e71950742')
SUPPORTED_CLASS

alias of dict

dump(_DictSerializer__obj: dict) tuple[bytes, bytes][source]
fill(_DictSerializer__raw: bytes, _DictSerializer__obj: dict) dict[source]
load(_DictSerializer__raw: bytes) dict[source]

ObjectSerializationTool.Serializers.BuiltinNumber module

class ObjectSerializationTool.Serializers.BuiltinNumber.ComplexSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[complex]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('8cb1c280-d06b-4fba-b4d1-84e27436aefe')
SUPPORTED_CLASS

alias of complex

dump(_ComplexSerializer__obj: complex) tuple[bytes, bytes][source]
load(_ComplexSerializer__raw: bytes) complex[source]
class ObjectSerializationTool.Serializers.BuiltinNumber.FloatSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[float]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('b235c222-e69e-471c-8c95-c98919c397b5')
SUPPORTED_CLASS

alias of float

dump(_FloatSerializer__obj: float) tuple[bytes, bytes][source]
load(_FloatSerializer__raw: bytes) float[source]
class ObjectSerializationTool.Serializers.BuiltinNumber.IntegerSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[int]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('cf364fe2-1600-4f9b-9da8-89b09e9183d3')
SUPPORTED_CLASS

alias of int

dump(_IntegerSerializer__obj: int) tuple[bytes, bytes][source]
load(_IntegerSerializer__raw: bytes) int[source]

ObjectSerializationTool.Serializers.BuiltinSequence module

class ObjectSerializationTool.Serializers.BuiltinSequence.ListSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[list]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('434b80df-7512-40f5-b4df-6c70d4e54687')
SUPPORTED_CLASS

alias of list

dump(_ListSerializer__obj: list) tuple[bytes, bytes][source]
fill(_ListSerializer__raw: bytes, _ListSerializer__obj: list) list[source]
load(_ListSerializer__raw: bytes) list[source]
class ObjectSerializationTool.Serializers.BuiltinSequence.TupleSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[tuple]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('57a67547-bb7e-440f-be3f-d4d9378da8a4')
SUPPORTED_CLASS

alias of tuple

dump(_TupleSerializer__obj: tuple) tuple[bytes, bytes][source]
load(_TupleSerializer__raw: bytes) tuple[source]

ObjectSerializationTool.Serializers.BuiltinSet module

class ObjectSerializationTool.Serializers.BuiltinSet.FrozenSetSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[frozenset]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('6c5c3767-f603-4126-a09c-b61b5b037d6d')
SUPPORTED_CLASS

alias of frozenset

dump(_FrozenSetSerializer__obj: frozenset) tuple[bytes, bytes][source]
load(_FrozenSetSerializer__raw: bytes) frozenset[source]
class ObjectSerializationTool.Serializers.BuiltinSet.SetSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[set]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('30ef5d99-4580-42f7-aaad-07f9199f3eef')
SUPPORTED_CLASS

alias of set

dump(_SetSerializer__obj: set) tuple[bytes, bytes][source]
fill(_SetSerializer__raw: bytes, _SetSerializer__obj: set) set[source]
load(_SetSerializer__raw: bytes) set[source]

ObjectSerializationTool.Serializers.BuiltinString module

class ObjectSerializationTool.Serializers.BuiltinString.BytearraySerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[bytearray]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('fb620568-803a-4b82-b17a-ffaab37fb3ed')
SUPPORTED_CLASS

alias of bytearray

dump(_BytearraySerializer__obj: bytearray) tuple[bytes, bytes][source]
load(_BytearraySerializer__raw: bytes) bytearray[source]
class ObjectSerializationTool.Serializers.BuiltinString.BytesSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[bytes]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('56fa2032-3d28-4829-8fd0-8c0b2e07908c')
SUPPORTED_CLASS

alias of bytes

dump(_BytesSerializer__obj: bytes) tuple[bytes, bytes][source]
load(_BytesSerializer__raw: bytes) bytes[source]
class ObjectSerializationTool.Serializers.BuiltinString.TextSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: CommonSerializer[str]

SAFE_WHEN_DESERIALIZING: bool = True
SID: UUID = UUID('57688b8a-7e20-4b76-978e-104e1fb06d92')
SUPPORTED_CLASS

alias of str

dump(_TextSerializer__obj: str) tuple[bytes, bytes][source]
load(_TextSerializer__raw: bytes) str[source]

ObjectSerializationTool.Serializers.Fallback module

class ObjectSerializationTool.Serializers.Fallback.Pickler(pot: Pot.Pot, *args, **kwargs)[source]

Bases: Serializer

SAFE_WHEN_DESERIALIZING: bool = False
SID: UUID = UUID('037d6c1a-2f7f-479a-a416-a6761d6b9402')
dump(_Pickler__obj: Any) tuple[bytes, bytes][source]
fill(_Pickler__raw: bytes, _Pickler__obj: Any) Any[source]
load(_Pickler__raw: bytes) Any[source]
support(_Pickler__obj: Any) bool[source]

ObjectSerializationTool.Serializers.SerializerBase module

class ObjectSerializationTool.Serializers.SerializerBase.CommonSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: Serializer[T], ABC

SUPPORTED_CLASS: type[T]
fill(_CommonSerializer__raw: bytes, _CommonSerializer__obj: T) T[source]
support(_CommonSerializer__obj: T) bool[source]
class ObjectSerializationTool.Serializers.SerializerBase.ConstantSerializer(pot: Pot.Pot, *args, **kwargs)[source]

Bases: Serializer[T], ABC

CONSTANT: T
dump(_ConstantSerializer__obj: T) tuple[bytes, bytes][source]
fill(_ConstantSerializer__raw: bytes, _ConstantSerializer__obj: T) T[source]
load(_ConstantSerializer__raw: bytes) T[source]
support(_ConstantSerializer__obj: T) bool[source]
ObjectSerializationTool.Serializers.SerializerBase.dump_iterable(__iterable: Iterable[Any], pot: Pot) bytes[source]
ObjectSerializationTool.Serializers.SerializerBase.load_iterable(__raw: bytes, pot: Pot) Iterable[Any][source]

Module contents