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.
- optional arguments:
- -h, --help
show this help message and exit
- --version
show version and exit
- --import IMPORT
modules to import
- --ascii-output, -a
with this option, jqp ensures ASCII output
- --sort-keys, -S
sort keys in objects when the command print it
- --raw-input, -R
pass each line text as a string instead of parsing it as JSON
- --raw-output, -r
when a result is string, the command shows a raw string
- --join-output, -j
do not show newlines
Example
% echo '{"name": "Taro", "age": 10}' | jqp '[j["name"], j["age"]]'
["Taro", 10]
License
MIT License
Metadata
Release files for jqp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jqp-0.1.0.tar.gz | 4.4 kB | Without provenance | Details |
Release files / jqp-0.1.0.tar.gz
| Download URL | jqp-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36f2056806fb2f647f16297e610fd25fb829cc5d137b5c04735ca6191d675502
|
|
BLAKE2b-256 checksum How to use checksums |
db14150bb2d87ed605221ef93e7325fb465a1f93a4476a78eefe068f769831fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jqp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.