yggdrasil.pickle.ser.ios¶
ios ¶
IOSerialized
dataclass
¶
Bases: Serialized[object]
Base serializer for Python IO-like objects.
Subclasses specialize common in-memory forms: - binary streams -> IO - text streams -> StringIO - exact buffers -> io.BytesIO / io.StringIO
module_and_name
staticmethod
¶
Return (module, qualname) for obj.
Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.
BinaryIOSerialized
dataclass
¶
Bases: IOSerialized
Generic binary IO serializer.
Decodes to yggdrasil IO.
module_and_name
staticmethod
¶
Return (module, qualname) for obj.
Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.
TextIOSerialized
dataclass
¶
Bases: IOSerialized
Generic text IO serializer.
Payload is encoded text bytes plus compact text metadata. Decodes to io.StringIO.
module_and_name
staticmethod
¶
Return (module, qualname) for obj.
Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.
BytesBufferSerialized
dataclass
¶
Bases: BinaryIOSerialized
Exact serializer for io.BytesIO.
Decodes back to io.BytesIO rather than yggdrasil IO.
module_and_name
staticmethod
¶
Return (module, qualname) for obj.
Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.
StringBufferSerialized
dataclass
¶
Bases: TextIOSerialized
Exact serializer for io.StringIO.
Decodes back to io.StringIO.
module_and_name
staticmethod
¶
Return (module, qualname) for obj.
Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.