Skip to main content

GraphQL Introspection parsing and query generation

Project description

GQLSpection

Python 2.7 compatible library for parsing GraphQL introspection query and automatic query generation.

>>> from gqlspection import GQLSchema
>>> schema = GQLSchema('https://swapi-graphql.netlify.app/.netlify/functions/index')
>>> # Print a single query
>>> query = schema.generate_query('allFilms')
>>> print(query.print_query())
>>> # Print all possible queries
>>> schema.print_sample_queries()

Installation

gqlspection should be available (soon) on PyPI:

$ pip install gqlspection

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

gqlspection-0.0.1a1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

gqlspection-0.0.1a1-py2-none-any.whl (13.8 kB view hashes)

Uploaded Python 2

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