A GraphQL Client
Project description
Getting Started
client = GraphQLClient('https://www.graphqlhub.com/graphql')
result = client.query('''
query ($id: String!) {
hn2 {
nodeFromHnId(id: $id, isUserId: true) {
id
}
}
}
''', {'id': 'clayallsopp'})
The client constructor can also take a dictionary of additonal headers in a keyword argument headers or as the second parameter.
Tests
To Run Tests
make test
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
graphql_client-0.3.0.tar.gz
(2.1 kB
view details)
File details
Details for the file graphql_client-0.3.0.tar.gz
.
File metadata
- Download URL: graphql_client-0.3.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
50c10c36b93d661c00a527ea9052a39d5055ef9283f24e8fc951e3f95bc3531f
|
|
MD5 |
76fb782dafed9e716799b4634138fd41
|
|
BLAKE2b-256 |
ee5c3c2232eb41b05dd58411deae899d3046d662b57dba830936f50f2c4bcd23
|