python-graphql-client
Simple GraphQL client for Python 2.7+
Install
pip install graphqlclient
Usage
from graphqlclient import GraphQLClient
client = GraphQLClient('http://graphql-swapi.parseapp.com/')
result = client.execute('''
{
allFilms {
films {
title
}
}
}
''')
print(result)
Authorization
Authorization tokens can be added to the request using the client's inject_token method:
client.inject_token('very-long-and-secure-token')
which defaults to http header name Authorization.
An alternative http header name for the token can be set by passing in the alternative header name, e.g. for x-api-key:
client.inject_token('very-long-and-secure-token','x-api-key')
License
Metadata
Release files for graphqlclient 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| graphqlclient-0.2.4.tar.gz | 2.6 kB | Without provenance | Details |
Release files / graphqlclient-0.2.4.tar.gz
| Download URL | graphqlclient-0.2.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3305f3df88c04839195754d409a49a2dc3adbcba4ebf9133b5663749e1dd92c
|
|
BLAKE2b-256 checksum How to use checksums |
a7175914b77cc84c5e0bd8af54fedd2fac6cd34c6a14cb2231a02a58d51e2f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for graphqlclient 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.