Skip to content

yggdrasil.pickle.ser.ios

ios

IOSerialized dataclass

IOSerialized(head: Header, data: IO)

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

module_and_name(obj: Any, *, fallback: str = '') -> tuple[str, str]

Return (module, qualname) for obj.

Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.

BinaryIOSerialized dataclass

BinaryIOSerialized(head: Header, data: IO)

Bases: IOSerialized

Generic binary IO serializer.

Decodes to yggdrasil IO.

module_and_name staticmethod

module_and_name(obj: Any, *, fallback: str = '') -> tuple[str, str]

Return (module, qualname) for obj.

Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.

TextIOSerialized dataclass

TextIOSerialized(head: Header, data: IO)

Bases: IOSerialized

Generic text IO serializer.

Payload is encoded text bytes plus compact text metadata. Decodes to io.StringIO.

module_and_name staticmethod

module_and_name(obj: Any, *, fallback: str = '') -> tuple[str, str]

Return (module, qualname) for obj.

Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.

BytesBufferSerialized dataclass

BytesBufferSerialized(head: Header, data: IO)

Bases: BinaryIOSerialized

Exact serializer for io.BytesIO.

Decodes back to io.BytesIO rather than yggdrasil IO.

module_and_name staticmethod

module_and_name(obj: Any, *, fallback: str = '') -> tuple[str, str]

Return (module, qualname) for obj.

Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.

StringBufferSerialized dataclass

StringBufferSerialized(head: Header, data: IO)

Bases: TextIOSerialized

Exact serializer for io.StringIO.

Decodes back to io.StringIO.

module_and_name staticmethod

module_and_name(obj: Any, *, fallback: str = '') -> tuple[str, str]

Return (module, qualname) for obj.

Robust across Python objects, including many C-extension / PyArrow objects where module may be missing or misleading.