This package was created so that when using sgqlc (Simple GraphQL Client) you do not need to create schemas for popular APIs.
You can install this package either via the Python Package Index (PyPI) or from source.
To install using pip
:
$ pip install -U sgqlc-schemas
from sgqlc.endpoint.http import HTTPEndpoint
from sgqlc.operation import Operation
from sgqlc_schemas import github_schema
op = Operation(github_schema.query_type)
op.viewer().login()
endpoint = HTTPEndpoint('https://api.github.com/graphql', {'Authorization': f'bearer {token}'})
data = endpoint(op)
This package welcomes any new contribution. Please create pull requests on GitHub.