https://github.com/gutierri/jq.py
jq.py is a simple json processor and filtering (jq-like) for Pythonists
https://github.com/gutierri/jq.py
jq jq-like json python-json
Last synced: 2 months ago
JSON representation
jq.py is a simple json processor and filtering (jq-like) for Pythonists
- Host: GitHub
- URL: https://github.com/gutierri/jq.py
- Owner: gutierri
- License: gpl-3.0
- Created: 2021-04-13T01:46:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-08T02:42:17.000Z (over 3 years ago)
- Last Synced: 2025-07-11T09:42:19.376Z (6 months ago)
- Topics: jq, jq-like, json, python-json
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
*****
jq.py
*****
jq.py is a simple jq-like for Pythonists
like jq, jq.py does the processing of JSON structures, but using dot notation
and native list features to process queries.
example:
.. code-block:: sh
$ echo '{"results": [{"x": "1"},{"y":"2"}]}' | jq.py -q "results[0]"
{
"x": "1"
}
$ echo '{"body": {"title": "my title"}}' | jq.py -q "body.title"
"my title"
for more information and documentation: ``jq.py --help``
installation
############
from source
.. code-block:: sh
$ curl -o ~/.local/bin/jq.py https://raw.github.com/gutierri/jq.py/main/jq.py
from git
.. code-block:: sh
$ python3 -m pip install git+https://github.com/gutierri/jq.py.git#egg=jq.py
license
#######
jq.py is free software, licensed under the GNU General Public License,
which can be found in the file COPYING.