The missing Python utility to read and write large compressed JSONs. Supports automatic compression detection from file extensions (gzip, bz2, lzma, xz) or explicit specification. Current version 1.1.1, active development with periodic releases.
pip install compress-jsonVerified import paths — ran on the pinned version, not inferred.
Basic usage: dump serializes to a compressed JSON file, load reads it back. Compression type is inferred from file extension (.gz, .bz2, .xz, .lzma).
Always provide data first, then file path.
Use compression='gzip' (or 'bz2', 'lzma', 'xz') when extension is missing or does not match.
Swap arguments: from_compress_json import dump; dump(my_data, 'file.json.gz')
Add compression='lzma' (or other) to dump/load, or use a standard extension (.gz, .bz2, .xz, .lzma).
No dependency data recorded yet.