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 hashes)
Built Distribution
Close
Hashes for py_gql_next-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae15c3db6b7321b4b139358cc974e6827500b4e03616445c3fd84702f3825e70 |
|
MD5 | 0297e40bf6e4ea974e43d44c1a3c906f |
|
BLAKE2b-256 | b9742a11376ea7ce3fa87f74a96c7492cad773f48fa29f3a666d2c0cbbc77069 |