Skip to main content

A set of schemas for sgqlc package

Project description

PyPI version

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


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 details)

Uploaded Source

Built Distribution

sgqlc_schemas-0.1.0-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file sgqlc_schemas-0.1.0.tar.gz.

File metadata

  • Download URL: sgqlc_schemas-0.1.0.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sgqlc_schemas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39d2a0ce4532f7cff84e41ebc59fff3f18576d4cc448ec81c6c33988cc1e4639
MD5 0023b08a49f9becc9d9df57193ab454b
BLAKE2b-256 329b8f01382a9b213955d34f2f1a2d5ad16fe7a045f25a8672717c564c1aa36e

See more details on using hashes here.

File details

Details for the file sgqlc_schemas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sgqlc_schemas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for sgqlc_schemas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed63f12dfcec6e9964017493d0e96ae7f33f059d096a766a103e70ee680f6a87
MD5 f628aa2b355dcdeb708ba4af3c9f945a
BLAKE2b-256 673eeac936ac930fa3099454f4232ddef6a903c53fb8862e44051c2c4de2498f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page