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 gql import gql, Client
client = Client(schema=schema)
query = gql('''
{
hello
}
''')
client.execute(query)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gql-0.1.0.tar.gz
(3.9 kB
view details)
File details
Details for the file gql-0.1.0.tar.gz
.
File metadata
- Download URL: gql-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20cf1eb1c6d54558174a3dcc3cf1ca0e07678cb1123804c2e165838238350f4 |
|
MD5 | 4fe799df09b5cc44ef455c2360fff48a |
|
BLAKE2b-256 | aa9c2933b7791210e00f5c26a6243198cc03af9132c29cf85e4c22cb007f171e |