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-4.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01728e045081b2b994b4c00601172a38c70b25c76db35ba7c577e231a7429b15 |
|
MD5 | 7b8fb38462f74e9dda1d67fdd3f54979 |
|
BLAKE2b-256 | 186ba4bb55526caf4e8908382950ed11f765fe3ba1f4dde7edde2bd3aca03dce |
Close
Hashes for bareasgi_graphql_next-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2733a58dc4c9cb060f296d7a564b2975ff40b0b4f8f88ee1e7310254c505cee |
|
MD5 | f43ee736e99e19ef40bcda60ee4a19d2 |
|
BLAKE2b-256 | c38b68e5c4b99a345fe446109324f156f2e0a4b37ae7bcac0b957c6433d1b8ca |