Skip to content

yggdrasil.pickle.ser.codec

codec

codec_name

codec_name(codec: int) -> str

Return a human-readable codec name.

default_codec

default_codec() -> int

Return the preferred default compression codec for this runtime.

Preference order: 1. zstd, if installed 2. zlib, always available in stdlib

compress_bytes

compress_bytes(data: bytes, codec: int) -> bytes

Compress bytes using the configured wire codec.

decompress_bytes

decompress_bytes(data: bytes, codec: int) -> bytes

Decompress bytes using the configured wire codec.