https://github.com/rmax/jmesobj
JMESPath-powered lightweight data container ideal for JSON payloads.
https://github.com/rmax/jmesobj
jmespath python
Last synced: about 1 year ago
JSON representation
JMESPath-powered lightweight data container ideal for JSON payloads.
- Host: GitHub
- URL: https://github.com/rmax/jmesobj
- Owner: rmax
- Created: 2020-05-03T20:23:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T20:44:10.000Z (about 6 years ago)
- Last Synced: 2025-05-15T09:15:20.854Z (about 1 year ago)
- Topics: jmespath, python
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
JMESObj Lightweight Data Container
----------------------------------
This project contains a class with index-like JMESPath querying.
Example::
>>> from jmesobj import JMESObj
>>> obj = JMESObj.from_json('{"foo": {"bar": true, "baz": false}}')
>>> obj['foo.bar']
True
>>> obj['foo.*']
[True, False]
Installation
============
Using ``pip``::
$ pip install jmesobj
Development
===========
Development environment is set up by ``pipenv``::
$ pipenv install --dev