Skip to main content

zipjson - a simple tool to create and read compressed JSON files

Installation

pip install git+https://github.com/vguzov/zipjson.git

Usage:

The following code creates a .zip archive with data.json file inside it, containing the serialized data, then reads it

import zipjson
any_jsonable_data = {"something":42}
file_object = open("test.json.zip", "wb") # Mind the additional 'b' flag
zipjson.dump(any_jsonable_data, file_object)
loaded_data = zipjson.load(open("test.json.zip", "rb"))
print(loaded_data) # {'something': 42}

In-memory methods dumps and loads are supported as well

Metadata

Release files for zipjson 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zipjson 0.0.1
File Size Uploaded
zipjson-0.0.1.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zipjson 0.0.1
File Interpreter ABI Platform
zipjson-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / zipjson-0.0.1.tar.gz

Download URL zipjson-0.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5814b4e4cce77d73ac25fe0331ecbc82889282285a38bbaf937848019db9befc
BLAKE2b-256 checksum
How to use checksums
1fe82b46370525a22209a6c1b2cdff166c20a10747a829690e19e19147d2f7f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

Release files / zipjson-0.0.1-py3-none-any.whl

Download URL zipjson-0.0.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d6839ec9e917ba3fe41dff671617cb7ac104a2262a1c0c86b2d6d3662e9f7df
BLAKE2b-256 checksum
How to use checksums
14570bb0eb03d42632d157bfccb095a3ac9e8c2a0f2ee5564f528eb47e5ea276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page