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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980edd1be68982748250f4c734cfcbc0c80cb73fff5a3e0b7a433bf2d839e14b |
|
MD5 | 382bc76b0cc9c2af6cdf01d093e2f34f |
|
BLAKE2b-256 | 9891968b37fa445bf76dd02614cf5f0471027bf83c0de7e96baa1d90f9421360 |
Close
Hashes for bareasgi_graphql_next-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5308c388ce8580fe34a67852c039162672c292497612acdd954be4163211d389 |
|
MD5 | 823f07a5253569626d849fbfc8b9bd2a |
|
BLAKE2b-256 | 6510e32a3f4908a123b2f957abc1a916e85b69260b63bd407da8667c072907cc |