A simple python GraphQL client
Project description
python-graphql
Python client of GraphGL.This package mainly uses requests to build the http/https requests.
Install
pip install py-gql-next
Usage:
(example of gitlab graphql api)
from pygql import Client
gitlab = Client(url="https://www.gitlab.com/api/graphql")
query = {
"query": """
{
currentUser {
name
}
}"""
}
print(gitlab.execute(query))
Result
{
"data": {
"currentUser": None
}
}
TODO:
- async support
- add tests
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
py-gql-next-0.0.2.tar.gz
(2.1 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 py-gql-next-0.0.2.tar.gz.
File metadata
- Download URL: py-gql-next-0.0.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1e66ace1628d730a6e54515f740706ad5b36110a2b4067897d06c23059dd771
|
|
| MD5 |
e5518634d97f1f72caa6bb55bc6bc394
|
|
| BLAKE2b-256 |
c7a2b0c591272f4bda076d1446666e43607d6fc076f858a1fdf5aee34b87aefd
|
File details
Details for the file py_gql_next-0.0.2-py3-none-any.whl.
File metadata
- Download URL: py_gql_next-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae15c3db6b7321b4b139358cc974e6827500b4e03616445c3fd84702f3825e70
|
|
| MD5 |
0297e40bf6e4ea974e43d44c1a3c906f
|
|
| BLAKE2b-256 |
b9742a11376ea7ce3fa87f74a96c7492cad773f48fa29f3a666d2c0cbbc77069
|