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

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.keyas well asdict['key'] - Note: using
dict.keyis about 2-2.5x slower [in some cases] than usingdict['key'], however, usingdict['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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f2527e6dbee7296f87f8d1d9c7c5f719f9089259bad365c49e12544e9bc83e
|
|
| MD5 |
a483da0837b806fa37765adfbf707249
|
|
| BLAKE2b-256 |
4f0c3a7625f8668c4b6631ea2f1af0e35183431a7324207d9d48e420a02b1826
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7ba330c318925c241c7ed3da1067468248fe1c53070325e7d446f25173f976
|
|
| MD5 |
8b16a722e3fea96b243f6e9f6803f35d
|
|
| BLAKE2b-256 |
13d2f4948c8b2e14d0a03b8868cee6babd2b9ce4ee2c35b920a915f674804cad
|