Tools for GraphQL client in python.
Project description
GRAPHQL2PYTHON
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for graphql2python-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb33e97141c0cbbafb7c01cedf4902b41288f87b1368bc5d671ee9a89ae4ab4 |
|
MD5 | db28ac70f3b4cbd1f847c37a0281a227 |
|
BLAKE2b-256 | cf691fc7ed31da08a861e14c5a69952d803a559759afc2056f1f069b56941cc5 |