GraphQL client for Python
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 gql
Usage
The example below shows how you can execute queries against a local schema.
from pygql 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
pygql-0.1.3.tar.gz
(6.3 kB
view details)
File details
Details for the file pygql-0.1.3.tar.gz.
File metadata
- Download URL: pygql-0.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
befa24fb7f8e6d06866b6c3e907bda35c95355bcea6e181aabf75b4711a04795
|
|
| MD5 |
983941cfea65a81fe858f8b73155306e
|
|
| BLAKE2b-256 |
c57febea831ea2077faea7fcd4dad82f5ed8d3bac3e84f6146c7636b58997b82
|