Skip to main content

A tool to create and read compressed JSON files

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zipjson-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

zipjson-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file zipjson-0.0.1.tar.gz.

File metadata

  • Download URL: zipjson-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for zipjson-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5814b4e4cce77d73ac25fe0331ecbc82889282285a38bbaf937848019db9befc
MD5 136bf9ac05b2cf53e274299fc35b625b
BLAKE2b-256 1fe82b46370525a22209a6c1b2cdff166c20a10747a829690e19e19147d2f7f2

See more details on using hashes here.

File details

Details for the file zipjson-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: zipjson-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for zipjson-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d6839ec9e917ba3fe41dff671617cb7ac104a2262a1c0c86b2d6d3662e9f7df
MD5 9028eb58d88699a9b12e92ada37654d1
BLAKE2b-256 14570bb0eb03d42632d157bfccb095a3ac9e8c2a0f2ee5564f528eb47e5ea276

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page