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-1.9.6.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for classy_json-1.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697f6e97cf883d22ac436c271e9cb70826e0b8bdb614245ecb76008d69d62abe |
|
MD5 | 6796a172c93b55d15471d678bba65c45 |
|
BLAKE2b-256 | 88ff78b02310124a73560feb922c031df3f7f9537bd12854fe5fe93995fe59bb |