This is the core for a blazingly fast and modern graphql client that was designed with simplicity in mind.
See the documentation for more details.
from qlient.core import Client, Backend, GraphQLResponse
class MyBackend(Backend):
"""Must be implemented by you"""
client = Client(MyBackend())
res: GraphQLResponse = client.query.get_my_thing("name")
print(res.request.query) # "query get_my_thing { get_my_thing { name } }"