Write strings to access nested JSON objects
Project description
Jaccs allows you to pull data from JSON objects using string Python expressions. For example:
>>> from jaccs import access >>> access({'a': 'b': [{'c': 1}, {'c': 2}]}, '_.a.b[1].c') 2
This is expected to be most useful for combining specifications stored in external text files (say JSON or YAML) with data objects in Python.
Documentation is at https://jiffyclub.github.io/jaccs/.
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 Distributions
jaccs-1.0.0.zip
(5.9 kB
view details)
jaccs-1.0.0.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file jaccs-1.0.0.zip
.
File metadata
- Download URL: jaccs-1.0.0.zip
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68d0ffceb7d119280fb98f0e5397e4badbe9e4924d3a170e5daaac7ce241013b |
|
MD5 | 813fc9178c9298d3695cfb8554be1634 |
|
BLAKE2b-256 | fd3c1458ff3877f5cf2093f128962aa091e88bca6a413918763dc617860245e0 |
File details
Details for the file jaccs-1.0.0.tar.gz
.
File metadata
- Download URL: jaccs-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c9bc9f1dc8be2fec677ec45a190922e1b8c52c2f7e8270a5459b6d06c7aae1 |
|
MD5 | 4a3763caadc3356f88c4e0e98dc80a40 |
|
BLAKE2b-256 | b913e80999d36a380e8c9a4a0c6b4a25eab41da17a2a764c680e5adc848c2568 |
File details
Details for the file jaccs-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: jaccs-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bfe84ba33978923432d4227836251ee63779c3531649296b0f5cfc0277b8229 |
|
MD5 | 2c9b1ca531ecbf4cf0c91bf775f6991b |
|
BLAKE2b-256 | 19fc2507180914ab921e56ba1ae455dd982cc40cb87935523908f04ab751f8ef |