An attempt to recreate the way json behaves in Javascript, but in Python
Project description
Classy-Json
An attempt at recreating the way json works in JavaScript, but in the Python programming language.
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
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 asdict['key']
- Note: using
dict.key
is about 2-2.5x slower than usingdict['key']
, however, usingdict['key']
is just as fast as in normal Python dictionaries.
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-1.9.4.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for classy_json-1.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e888463eefbd8041173c5e5d6fa031371d6c8c5acb5e5ceba0c71f6664bad47f |
|
MD5 | 6d3b688acea57aaf3e7e6920b5cec91b |
|
BLAKE2b-256 | 72b932048b51aa9a0f01496015290728c523d616ba28fdf08840c7acff20e37c |