Skip to main content

Write strings to access nested JSON objects

Project description

https://travis-ci.org/jiffyclub/jaccs.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jaccs, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size jaccs-1.0.0-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version any Upload date Hashes View
Filename, size jaccs-1.0.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View
Filename, size jaccs-1.0.0.zip (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page