Python implementation of jsonselect (http://jsonselect.org/)
Project description
#jsonselect.py
jsonselect.py is a python implementation of https://github.com/fd/json_select
You can find more information here http://jsonselect.org/
## Usage
jsonselect can be called directly from the command line.
python -m jsonselect <selector> < jsonfile
This is usefull, for example, for parsing out values from JSON APIs.
`sh $aws ec2 describe-instances --filters "Name=tag:Name,Values=kafka" | python -m jsonselect .InstanceId ["i-12345678", "i-23456789", "i-3456789A"] `
## Project status
jsonselect.py currently implements levels 1 & 2 of these conformance tests https://github.com/lloyd/JSONSelectTests
level 3 is unimplemented because I was having trouble understanding what the correct behavior should be
##Tests
get the upstream conformance tests: git submodule update –init
Run specific level conformance tests with nosetests -m ‘.*_level_1’ ./tests/test_conformance.py
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
File details
Details for the file jsonselect-0.2.1.tar.gz
.
File metadata
- Download URL: jsonselect-0.2.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d398ce874f508870a6ab8b586bf27efe6db2bd7e696ea4ed699e8fd554177b23 |
|
MD5 | cb9c35128cfee744f2bf83a1501642c9 |
|
BLAKE2b-256 | 2fa8064b865172ea77aab806ad42f62a4677fd5da7238a0fcd67536fb0912ad9 |