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.18.0.tar.gz
(5.0 kB
view details)
Built Distribution
gqt-0.18.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file gqt-0.18.0.tar.gz
.
File metadata
- Download URL: gqt-0.18.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 653be088004f7cd35a471c8fbb37278fa9d10383c38807aa74177857aaca0319 |
|
MD5 | 64d83489ef0bdf69a62d01758f74fb8b |
|
BLAKE2b-256 | bd89ed896b2f5ed821051cb8bdc8f45d109b5627b50010fd39c50afd7c1115aa |
File details
Details for the file gqt-0.18.0-py3-none-any.whl
.
File metadata
- Download URL: gqt-0.18.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 | 89e71d41cb16792bce3b43319f2e341142ab88f6f51b83bcb4a420ac9f262b05 |
|
MD5 | 7cf4d6e4e956ac330101a6ce34f7a9fd |
|
BLAKE2b-256 | 85d1f8c6d3785e5d29a7843472d05118b5b67b5209a7df1c9a7af3620c0ee974 |