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-3.11.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24b235af44ebbf63181bfae0a0ef4e2724c9a2d1536486afc172dea7ad0f40c8 |
|
MD5 | 1674c7142a9f6b5dc3f5bf06121330db |
|
BLAKE2b-256 | d0406b206f8997ec4e563851e100b587f7d6fa8a99f2717072ffb68d4dc8b70f |
Close
Hashes for bareasgi_graphql_next-3.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6156a668231817d6a961290435cc7e336063051f2f30e456492fb5d5b612246d |
|
MD5 | 29b027465957d1405b88afcffa74ae26 |
|
BLAKE2b-256 | b403a7e9744dbf13c7461a76db51f0bda84deee9a5bfcb9ddbd77e5f7ecc34a4 |