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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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