![PyPI version](https://badge.fury.io/py/sgqlc-schemas.svg)
About
This package was created so that when using sgqlc (Simple GraphQL Client) you do not need to create schemas for popular APIs.
How to use
Installation
You can install this package either via the Python Package Index (PyPI) or from source.
To install using pip
:
$ pip install -U sgqlc-schemas
Import schema and simple query
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)
Current schemas
Contribution
This package welcomes any new contribution. Please create pull requests on GitHub.