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.
Release files for sgqlc-schemas 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sgqlc_schemas-0.1.0.tar.gz | 55.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgqlc_schemas-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.8 kB
Release files / sgqlc_schemas-0.1.0.tar.gz
| Download URL | sgqlc_schemas-0.1.0.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39d2a0ce4532f7cff84e41ebc59fff3f18576d4cc448ec81c6c33988cc1e4639
|
|
BLAKE2b-256 checksum How to use checksums |
329b8f01382a9b213955d34f2f1a2d5ad16fe7a045f25a8672717c564c1aa36e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|
Release files / sgqlc_schemas-0.1.0-py3-none-any.whl
| Download URL | sgqlc_schemas-0.1.0-py3-none-any.whl |
|---|---|
| Size | 55.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed63f12dfcec6e9964017493d0e96ae7f33f059d096a766a103e70ee680f6a87
|
|
BLAKE2b-256 checksum How to use checksums |
673eeac936ac930fa3099454f4232ddef6a903c53fb8862e44051c2c4de2498f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|