mini-jq 🚀
A lightweight, zero-dependency command-line utility written in pure Python designed to query, filter, and transform JSON data from standard input or files using a simplified dot-notation query language.
Installation
pip install .
Usage
Query JSON data directly from a file or via standard input:
cat data.json | mjq "users[?age > 18].name"
Or pass a file argument:
mjq "store.books[0].title" data.json
Features
- Path Navigation: Traverse nested dictionaries and lists (
.store.owner,books[0].title). - Array Slicing & Projections: Map fields across lists (
books[*].title). - Conditional Filtering: Filter lists using comparison operators (
users[?age > 18]). - Flexible Output: Pretty-printed output by default, or compact minified JSON via
-c/--compact.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mini_jq-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mini_jq-0.1.0.tar.gz.
File metadata
- Download URL: mini_jq-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
060228dc077c6ef61ef3738790268f1416647a5a30f8c2c50002eb751959ba40
|
|
| MD5 |
64bc6c00df04ac3f1d7e3c9ade964ec4
|
|
| BLAKE2b-256 |
43cf8230894101f9a9919123789407198e9372df0150c7286fd7d2d9a99a73c4
|
File details
Details for the file mini_jq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mini_jq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af74e98d65e3a6e7e15a4973a827a93919cef16a8cd0124700abba370c55d1fd
|
|
| MD5 |
ddc72bf0ac7207bc1fc7efa154b35442
|
|
| BLAKE2b-256 |
9d4024815a1f2c9441dd098fd54969e5a27dd51f47c322dc2d9d0984a9e5b0e2
|