A set of schemas for sgqlc package
Project description
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.
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
sgqlc_schemas-0.1.0.tar.gz
(55.5 kB
view hashes)
Built Distribution
Close
Hashes for sgqlc_schemas-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed63f12dfcec6e9964017493d0e96ae7f33f059d096a766a103e70ee680f6a87 |
|
MD5 | f628aa2b355dcdeb708ba4af3c9f945a |
|
BLAKE2b-256 | 673eeac936ac930fa3099454f4232ddef6a903c53fb8862e44051c2c4de2498f |