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)
Development
To develop with the graphene optional package:
poetry install --extras graphene
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-5.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2efe5ef04936d94185706ab57b92199aaa9cbee9c73c1720a8e81195fd9c93a5 |
|
MD5 | 2dd0132e43f78388435081c02bae02d6 |
|
BLAKE2b-256 | 04922419db66e12d32f1dabbe055fef895b0a01ca4b4efe5656a5a5952100e74 |
Close
Hashes for bareasgi_graphql_next-5.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f8b3bedf436ba0b6274d40b85f52a38dc348b71a5e39d23d27aeb483746c38 |
|
MD5 | dbcf278c6b2f19810230c00e54a542b3 |
|
BLAKE2b-256 | 9df13ceb635757e6b1ca4e4372311a69995ad1c0af8db013658b022625c4e0aa |