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.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1091dc2176fb4b33765c11eb2cb9bb0f1f72cba26b025e0b859ca6bd2bc6f1f6 |
|
MD5 | 682e4b955ac26495df7909ab960e7275 |
|
BLAKE2b-256 | 7305af3a46a871a9e8b9d39943db3a3f3e922af1ee73df4ac8ec0be86dbffdfe |
Close
Hashes for bareasgi_graphql_next-3.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bfa4c19ad00258169ebc15fe6fc330ef4ce7adcd8ae521d1263f013fcd60c2 |
|
MD5 | 34c6f8b437572ebb5352e34503367172 |
|
BLAKE2b-256 | d8240303401d6993033da6e517fd3f2cd7a03f9503199e1072024ce22d236386 |