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 if you're first accessing the value at that key (as it uses "lazy" maps) 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-2.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for classy_json-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb24e399887db1ab2d1f617fed326b0a9b2b0f691f1c5fa928b2e978469e6e5 |
|
MD5 | 0d6ce57bb91f6a3f6d6ce6da0e00f39e |
|
BLAKE2b-256 | d31177bc0ae3e3b8645ab3aa9db0b77563e84b2a64ae6f1494911e7f3b319e43 |