Skip to main content

Tools for GraphQL client in python.

Project description

GRAPHQL2PYTHON

Build tag last-commit license

graphql2python is a tool that generates python code out of your GraphQL schema. If you are using python as GraphQL client you can to generate GraphQL queries and pydantic data-model with graphql2python.

graphql2python has the following tools for your python GraphQL client:

  • python classes for generate of GraphQL queries;
  • the function for generation of pydantic data-model by your GraphQL schema;
  • ... (in future releases);

The special example for gql users here.

Quickstart

Install with pip

pip install graphql2python

Create the following file

# graphql2python.yaml
schema: ./schema.graphql
output: ./model.py

and run the following command

graphql2python render --config ./graphql2python.yaml

See the documentation for all the possibilities ( while it is docs/source/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

graphql2python-0.0.4-py3-none-any.whl (23.3 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