Qlient: Python GraphQL Client
A fast and modern graphql client designed with simplicity in mind.
Key Features
Help
See documentation for more details.
If you want more information about the internals,
I kindly refer you to the qlient-core documentation.
If you are looking for an asynchronous implementation,
I kindly refer you to the qlient-aiohttp sister project.
Installation
pip install qlient
Quick Start
from qlient.http import HTTPClient, GraphQLResponse
client = HTTPClient("https://swapi-graphql.netlify.app/.netlify/functions/index")
res: GraphQLResponse = client.query.film(
id="ZmlsbXM6MQ==",
_fields=["id", "title", "episodeID"]
)
print(res.request.query)
print(res.request.variables)
print(res.data)