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
If you wish to install with the grapheme option:
pip install 'bareasgi-graphql-next[graphene]'
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.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f13f7f00beb859504403a335191873c6f741ea8ab23d41b9447da2ff564c16 |
|
MD5 | 2bbd0074b549632bdcdc5d2e07d78349 |
|
BLAKE2b-256 | d1194d2e0be8b44e8f22be42b79ea3eed35484b0c1ab73cbf2dca2e91df0e17a |
Close
Hashes for bareasgi_graphql_next-3.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755823a886ec39ca65bbab9f502649b02ea5a642ff7053057e1f23ac6b78ed7f |
|
MD5 | 516b20224a530280072363bcbe2d69ac |
|
BLAKE2b-256 | 57a6567c4b862b34c6d1979553aaff3f4c5b947d34d8f44dfdc7fc9ab337053c |