GraphQL support for the bareASGI framework
Project description
bareASGI-graphql-next
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-next
Usage
You can register the graphql controller with the add_graphql_next
function.
from bareasgi import Application
from bareasgi_graphql_next import add_graphql_next
import graphql
# Get the schema ...
schema = graphql.GraphQLSchema( ... )
import uvicorn
app = Application()
add_graphql_next(app, schema)
uvicorn.run(app, port=9009)
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 Distribution
Built Distribution
Close
Hashes for bareasgi-graphql-next-3.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04691ec1ccb8de4e8e0b588666e86a014640176ea9c8ae827d670911a23d109 |
|
MD5 | 0ba0d96e15da8d4453a2ebbf9ba64f6d |
|
BLAKE2b-256 | 3cb581a62c2dc4bcf2c6d42108a495b2d7719122db5faffae2bff3e713f8ebed |
Close
Hashes for bareasgi_graphql_next-3.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3324e23e2bcdd6cfd8b0694ff41d841c9b4ddd40a9f0293992b4fb9b710046f |
|
MD5 | 43d6c3f9e8cbc72dcfc11299a6df493e |
|
BLAKE2b-256 | 51d9370fbc103611ae2f96222158a71f60b667364e1990123f5f88f42ce7be7f |