GraphQLBuilder is a package that can support the creation of GraphQL queries. It provides various methods for translating dicts or lists into mutation objects, which can then be used in a gql query.
Attention! This package is optimized for using a hasura.io endpoint - not all GraphQL functions are supported.
This package is currently under development. Nevertheless, all existing functions should work in most cases.
$ pip install git+https://github.com/sciencemediacenter/GraphQLBuilderimport GraphQLBuilder
gq = GraphQLBuilder.GraphQLBuilder()For testing, use:
pytest -v --cov=GraphQLBuilder tests/ --cov-report term-missingThe documentation can be found here
Feel free to dive in! Open an issue or submit PRs.
GraphQLBuilder was created by Hendrik Adam and is licensed under the GPL-3.0.
