Skip to content

About

A GraphQL and graphene package for bareASGI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

128 Commits

Folders and files

Repository files navigation

bareASGI-graphql

Graphql support for bareASGI (read the documentation)

The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.

Installation

Install from the pie shop.

pip install bareasgi-graphql

If you wish to install with the grapheme option:

pip install 'bareasgi-graphql[graphene]'

Usage

You can register the graphql controller with the add_graphql function.

from bareasgi import Application
from bareasgi_graphql import add_graphql
import graphql

# Get the schema ...
schema = graphql.GraphQLSchema( ... )

import uvicorn

app = Application()
add_graphql(app, schema)

uvicorn.run(app, port=9009)

Development

To develop with the graphene optional package:

poetry install --extras graphene

About

A GraphQL and graphene package for bareASGI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages