Skip to main content

An attempt to recreate the way json behaves in Javascript, but in Python

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Classy-Json PYPI Downloads PYPI Version

An attempt at recreating the way json works in JavaScript, but in the Python programming language.

How do I use classy-json?

  • All functions from the built in json module are supported! json module docs
  • The only difference is that you can now access dictionaries via dict.key as well as dict['key']
  • Note: using dict.key is about 2-2.5x slower [in some cases] than using dict['key'], however, using dict['key'] is just as fast as in normal Python dictionaries.
  • You can also use classyjson.classify(Union[dict, list, actually anything]) to turn a preexisting dictionary or list into a ClassyDict or ClassyList object

Setup / Install

Using pip:

python3 -m pip install classy-json

Manually:

  • Clone the repository
git clone https://github.com/Iapetus-11/classy-json.git
  • cd into the directory
cd classy-json
  • Run setup.py
python3 setup.py build install

Contribution

  • Fork the repository
  • Make any changes
  • Submit a pull request

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

classy-json-2.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

classy_json-2.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file classy-json-2.2.0.tar.gz.

File metadata

  • Download URL: classy-json-2.2.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for classy-json-2.2.0.tar.gz
Algorithm Hash digest
SHA256 57f2527e6dbee7296f87f8d1d9c7c5f719f9089259bad365c49e12544e9bc83e
MD5 a483da0837b806fa37765adfbf707249
BLAKE2b-256 4f0c3a7625f8668c4b6631ea2f1af0e35183431a7324207d9d48e420a02b1826

See more details on using hashes here.

File details

Details for the file classy_json-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: classy_json-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for classy_json-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d7ba330c318925c241c7ed3da1067468248fe1c53070325e7d446f25173f976
MD5 8b16a722e3fea96b243f6e9f6803f35d
BLAKE2b-256 13d2f4948c8b2e14d0a03b8868cee6babd2b9ce4ee2c35b920a915f674804cad

See more details on using hashes here.

Supported by

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