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.1.tar.gz
(6.2 kB
view details)
File details
Details for the file pygql-0.1.1.tar.gz.
File metadata
- Download URL: pygql-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b48d42bbe35c2229dd6e802e0a395d44565a3d0e7dd90159b8320e6b99485870
|
|
| MD5 |
379ef9bd36210186fe17be9a3f30d403
|
|
| BLAKE2b-256 |
17d282b57894d4d0bf7a76cd6e050ac59df57b33d2dcd79fafcc83fa701f9ef5
|