GraphQL query builder.
Project description
Installation
pip3 install gqt
Usage
Interactively create a query and execute it:
$ gqt https://mys-lang.org/graphql
{
"statistics": {
"start_date_time": "2022-05-29 20:54:48",
"number_of_graphql_requests": 234
}
}
Repeat last query:
$ gqt -r https://mys-lang.org/graphql
{
"statistics": {
"start_date_time": "2022-05-29 20:54:48",
"number_of_graphql_requests": 234
}
}
Print the query instead of executing it:
$ gqt -q https://mys-lang.org/graphql
{"query":"{statistics {start_date_time number_of_graphql_requests}}"}
Use jq for colors (not seen below) and extracting field values:
$ gqt https://mys-lang.org/graphql | jq
{
"statistics": {
"start_date_time": "2022-05-29 20:54:48",
"number_of_graphql_requests": 235
}
}
$ gqt https://mys-lang.org/graphql | jq .statistics.number_of_graphql_requests
236
Ideas
Print built query instead of executing it.
Contols:
Use / to fuzzy find field.
Variables?
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
gqt-0.17.0.tar.gz
(4.9 kB
view details)
Built Distribution
gqt-0.17.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file gqt-0.17.0.tar.gz
.
File metadata
- Download URL: gqt-0.17.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49f5e66f2facca26482e0299ad1b1bfdbce8efe99fc4be7e0702bb0844dfce6 |
|
MD5 | 3ea43d6b79a2e2b5c3e6b31fac213798 |
|
BLAKE2b-256 | 6f2c12f8e4347f3de36cf6a35410e8686e027671c510a8506e07b6e5dc161fe1 |
File details
Details for the file gqt-0.17.0-py3-none-any.whl
.
File metadata
- Download URL: gqt-0.17.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b11b2f2dd28c7d8a4d3d4367465c38b84f7b01ca40b12ee9d440e8c30af51e1 |
|
MD5 | 9009d1fed00fa70fc17be638cb942063 |
|
BLAKE2b-256 | da2329574cef284ea357b09fd845d066a3b2e9d6f5848d12e91f921fba8c3762 |