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-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 049bc5620f69f50034a6d0fd5d80564603781cd4e68e39d059c28915d1c4e436 |
|
MD5 | 06d5da31774d6cc2739641687d50f2aa |
|
BLAKE2b-256 | 7adfdd6c911511275f355f6195171fab68b6e2ba048de06ccbc171ad4817cec9 |
Close
Hashes for bareasgi_graphql_next-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e98dac454c9bb5f7fb62bd6086bcd80acca0a1ff1480a1dcd20f161e56f5ffa |
|
MD5 | 03b172f9fc04a6e6f53f89653cc622c6 |
|
BLAKE2b-256 | beb1563744acddbcd2eca1a49840bdecc71e55181d107b2fe2c315d29f927070 |