JSON processor with Python one-liner
Project description
jqp
jqp is a JSON processor with Python one-liner.
Requirement
Python 2.7, 3.3, 3.4, 3.5
Install
$ pip install jqp
Usage
jqp parses each line as a JSON object, and evaluates a given expression. A parsed JSON object is bounded a variable named j.
jqp cmd
- cmd:
An expression to evaluate.
Example
% echo '{"name": "Taro", "age": 10}' | jqp '[j["name"], j["age"]]' ["Taro", 10]
Lisence
MIT License
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
jqp-0.0.0.1.tar.gz
(3.0 kB
view details)
File details
Details for the file jqp-0.0.0.1.tar.gz
.
File metadata
- Download URL: jqp-0.0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7194d15d13d9a1b454e7ce50cf5dd8ecf7d57cc0c35ecb8efe7869619cfe3f |
|
MD5 | cb234164ea3b8419e1e7f1417e6ef262 |
|
BLAKE2b-256 | baaaa9b46abeca6bb871c952a611c3c806fb290418d0dbd7207cf0bd64bf45d2 |