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.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for classy_json-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d036ed4ff7e27e949f9ff663b8bd440429a078aaf141274d7263fcc899fc5e |
|
MD5 | 24ab786618e4e376e199c6b84fde942f |
|
BLAKE2b-256 | 3ae6b40081ade8167130bd0c386321c64dfb148d0dd8918087460d9d385a4b18 |