jqgpt is a gpt powered tool that helps you write jq queries. It takes a human user query and a json file as input and outputs a jq query that answers the user query. It requires an OPENAI_API_KEY to work.
Project description
jqgpt
jqgpt is a gpt powered tool that helps you write jq queries. It takes a human user query and a json file as input and outputs a jq query that answers the user query.
It accomplishes this by sending a very helpful jq prompt with tons of examples and a sample from the json file to the model.
You can install this using
pip install jqgpt
Examples:
$ jqgpt 'Get the total number of clams of type dolphin' seaCreatures.json
jq 'map(select(.type == "dolphin").clams) | add' seaCreatures.json
$ cat seaCreatures.json | jqgpt 'Get the names of sea creatures'
jq -r '.[] | .name' seaCreatures.json
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
jqgpt-0.1.0.tar.gz
(9.4 kB
view details)
Built Distribution
jqgpt-0.1.0-py3-none-any.whl
(8.5 kB
view details)
File details
Details for the file jqgpt-0.1.0.tar.gz
.
File metadata
- Download URL: jqgpt-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b2c373b9d78d4d3c0fc5b5890ebccb0a28b38219e892f040c9df68c60262d89 |
|
MD5 | 5b3fda54766dc1838955894ce722c5ef |
|
BLAKE2b-256 | 54afcff77af86c240afb65fd0e92a2233f1c5ca503755d9310238b1d51aa8ace |
File details
Details for the file jqgpt-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: jqgpt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bcd1febbec1291634f92153d91cb89d9feeffcb76ba26004fe8c5f3ff8aeed4 |
|
MD5 | 23ef6b6e8c38ad68fdaf668c06138d1d |
|
BLAKE2b-256 | 38339d9e72a914102e11280de42978df0dfc6cb7ade77c6c0b1df31bc6ec0cb8 |