Skip to main content

Extendable json encode/decode library.

Project description

Documentation Status https://github.com/MacHu-GWU/superjson-project/workflows/CI/badge.svg https://codecov.io/gh/MacHu-GWU/superjson-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/superjson.svg https://img.shields.io/pypi/l/superjson.svg https://img.shields.io/pypi/pyversions/superjson.svg PyPI - Downloads https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-orange.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to superjson Documentation

Features:

  1. Support for date, datetime, set, OrderedDict, deque, that the original json module can not serialize.

  2. Easy to extend to support any custom data type, SEE HOW.

  3. Allow // double slash started comments, # Pound key started comments style comment in json file (Good for human/machine readable config file).

  4. Use .gz for file extension, data will be automatically compressed.

  5. Atomic Write is ensured, operation of overwriting an existing json file is atomic.

Click HERE for full documentation.

Install

superjson is released on PyPI, so all you need is:

$ pip install superjson

To upgrade to latest version:

$ pip install --upgrade superjson

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

superjson-1.0.2.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

superjson-1.0.2-py2.py3-none-any.whl (30.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file superjson-1.0.2.tar.gz.

File metadata

  • Download URL: superjson-1.0.2.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11

File hashes

Hashes for superjson-1.0.2.tar.gz
Algorithm Hash digest
SHA256 24cfe20d419ec4e6be4487831eec9d762a9fb3b7b4a5a1c32a31a14f99996e26
MD5 71456ac7274726ad1a23b6c2dcc751c9
BLAKE2b-256 78ab1f3dd362e369c7cc99cd5e88d3c77814b38f42e322f91aa9e756eb7fe3b4

See more details on using hashes here.

File details

Details for the file superjson-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: superjson-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11

File hashes

Hashes for superjson-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b93fb43a89187a8ce777c7ffbdaadcb6ecda16bf024e3518248642e5875d940
MD5 b8a989d819e53da4f6f34b4f0285b763
BLAKE2b-256 7703682a205df805bc6de1a79a37709deb9f4a41552803a20eddf8927a6741d7

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