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
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
gqlspection-0.0.1a1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for gqlspection-0.0.1a1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb341cdce700969b66c26516c580b8ecd2dcc734b1e8f5c1cbaaba139231412 |
|
MD5 | 8ef5870ebe1af1589e12787753c141d2 |
|
BLAKE2b-256 | ee040a3a334bf22cff3bc68dca7e48649d0a3c82451b5d0c7da15c4dbe847a04 |