A fork of gql which uses asyncio & aiohttp for execution
Project description
This is a GraphQL client for Python. Plays nicely with graphene, graphql-core, graphql-js and any other GraphQL implementation compatible with the spec.
GQL architecture is inspired by React-Relay and Apollo-Client.
Installation
$ pip install aiogql
Usage
The example below shows how you can execute queries against a local schema.
from gql import gql, Client
client = Client(schema=schema)
query = gql('''
{
hello
}
''')
client.execute(query)
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiogql-1.1.1.linux-x86_64.tar.gz
(11.0 kB
view hashes)
Built Distribution
aiogql-1.1.1-py3-none-any.whl
(8.0 kB
view hashes)
Close
Hashes for aiogql-1.1.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4b3e9eacf1399eab203a537a83b8d98a47ca33947ca3afef055091aef36a48 |
|
MD5 | 5634552e370699e488b687aef32f2e1a |
|
BLAKE2b-256 | 8fbbd9198251a21ba64ef3165f77785ee322eed311536693c7c6c166fb65c5f8 |