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-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225c7d339f2eed4bed973fa703834dea8348abed8d1c52e21a7dddf30bb4f3aa |
|
MD5 | c2b49003e1b0cbdd6bb360499cf76090 |
|
BLAKE2b-256 | 05e43c86ccaa5413146ad314ad45a343987a4f817ed794b70433679d881e80fb |
Close
Hashes for bareasgi_graphql_next-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86e4803fcd8f99f290a275ebbd76995903530b10a2eb45af8e5ea9b3005012b0 |
|
MD5 | 4ddf5a32a451c96393bc7114770bb338 |
|
BLAKE2b-256 | 1ac7f38d8f895cde74ef4f19209ca937c1694df1fdd16efe776c94fc5dd7efc9 |