bluedynamics/zodb-json-codec(opens in a new tab)
Language: Rust
Fast pickle-to-JSON transcoder for ZODB, implemented in Rust via PyO3.
- stars
- 5
- watchers
- 1
- forks
- 1
- open issues
- 9
- Last updated
- 10/25/2026
Language: Rust
Fast pickle-to-JSON transcoder for ZODB, implemented in Rust via PyO3.
Fast pickle-to-JSON transcoder for ZODB, implemented in Rust via PyO3.
Converts ZODB pickle records into human-readable, JSONB-queryable JSON while staying round-trip safe. Designed as the codec layer for zodb-pgjsonb, a PostgreSQL JSONB storage backend for ZODB.
Key capabilities:
@dt, @ref, @t, ...)@pkl) ensures any pickle data roundtrips safelypip install zodb-json-codec
For building from source, see the documentation.
import zodb_json_codec # ZODB records (two concatenated pickles: class + state) record = zodb_json_codec.decode_zodb_record(data) # -> {"@cls": ["myapp.models", "Document"], "@s": {"title": "Hello", ...}} data = zodb_json_codec.encode_zodb_record(record) # Standalone pickle <-> JSON string json_str = zodb_json_codec.pickle_to_json(pickle_bytes) pickle_bytes = zodb_json_codec.json_to_pickle(json_str)
Full documentation is available at https://bluedynamics.github.io/zodb-json-codec/
The source code is managed in a Git repository, with its main branches hosted on GitHub. Issues can be reported there too.
We'd be happy to see many forks and pull requests to make this package even better. We welcome AI-assisted contributions, but expect every contributor to fully understand and be able to explain the code they submit. Please don't send bulk auto-generated pull requests.
Maintainers are Jens Klein and the BlueDynamics Alliance developer team. We appreciate any contribution and if a release on PyPI is needed, please just contact one of us. We also offer commercial support if any training, coaching, integration or adaptations are needed.
MIT