Extensions for JSONPath RW
Project description
Extensions for JSONPath RW
This extensions will be proposed upstream and will stay here only if they are refused.
Free software: Apache license
Documentation: https://python-jsonpath-rw-ext.readthedocs.org/en/latest/
Quick Start
At the command line:
$ pip install jsonpath-rw-ext
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv jsonpath-rw-ext $ pip install jsonpath-rw-ext
Extensions
name |
Example |
---|---|
len |
|
sorted |
|
filter |
|
arithmetic (-+*/) |
|
About arithmetic and string
Operations are done with python operators and allows types that python allows, and return None if the operation can be done due to imcompatible types.
When operators are used, a jsonpath must be be fully defined otherwise if jsonpath-rw-ext can’t known if expression is a string or a jsonpath field, it will choice string.
Example with data:
{ 'cow': 'foo', 'fish': 'bar' }
About arithmetic and list
Arithmetic can be used against two list if they have the same size.
Example with data:
{'objects': [ {'cow': 2, 'cat': 3}, {'cow': 4, 'cat': 6} ]}
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
Built Distribution
File details
Details for the file jsonpath-rw-ext-0.1.7.tar.gz
.
File metadata
- Download URL: jsonpath-rw-ext-0.1.7.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0eddc279105543372c9e243ab614a70d67c08d22c9f04cbd9f31763b395035 |
|
MD5 | 01214a82626426dc7183585cbfe81dda |
|
BLAKE2b-256 | 845c3e7d9be42d7fcf0534b3786c1be481e77f6c5d8e3cdc365f6aac797eac72 |
Provenance
File details
Details for the file jsonpath_rw_ext-0.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: jsonpath_rw_ext-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b42fb90deea29dd372b2a9fc919b5dfff2ccff5f6eb5d3cbad30412d7ad6e25 |
|
MD5 | ba1dcd839b381698925f3990e1e1eaf0 |
|
BLAKE2b-256 | db15f17a49beda0188c784a91c956c2ec6143150b422766cfa556f87e1e2ea7a |