graphene

Python library for creating GraphQL schemas with type safety

brewmacoslinux
Try with needOr install directly
Source

About

Thin layer of graphic data types

Commands

graphene

Examples

Create a simple GraphQL query type$ python -c "import graphene; class Query(graphene.ObjectType): hello = graphene.String(); schema = graphene.Schema(query=Query)"
Define a GraphQL object with fields$ python -c "import graphene; class User(graphene.ObjectType): name = graphene.String(); email = graphene.String()"
Execute a GraphQL query against a schema$ python -c "import graphene; schema = graphene.Schema(query=graphene.ObjectType); result = schema.execute('{__typename}')"