Data & Storage · zero-dependency · MIT

larzpack

MessagePack-compatible serialization.

Compact binary serialization compatible with MessagePack, plus a canonical/deterministic mode so equal data always produces identical bytes — ideal for hashing and signing.

larzscript pkg install pack
View on GitHub →Learn the stack

What you get

Try it

import "pack" as pack
let bytes_ = pack.encode({"a": 1, "b": [1, 2, 3]})
print(len(bytes_))
print(pack.decode(bytes_))
Output
10
{a: 1, b: [1, 2, 3]}

Why it's in the Larz Stack

larzpack is a real Larzscript package (larzscript pkg install pack) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.