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.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c4b59fd5f41c144c6198530a2d9687d3553199b912263d35dcedbd2fed536f |
|
MD5 | 1706a57b4d8e8a9606d008c9ae250ca8 |
|
BLAKE2b-256 | bac042fb8bfa6dc217a02785af947ff26dc70ff71b2f2074a7f0821f20df96d6 |
Close
Hashes for bareasgi_graphql_next-5.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55abc657f1c4acddaed9ff295312fb5483b056a8b76dc2c3465eac54de92a3d |
|
MD5 | afd7942e7d0eafc542b28aaf48820ab3 |
|
BLAKE2b-256 | 70cd2ee9c50d0d350250eddb0718089551ecf793d29d2149b25650cb4d4732c3 |