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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3d208f34f24f4b57b6f4bc98cb999af203ac5efcfa9edf46d8670ec96aed2b |
|
MD5 | 5cef1edc26f771b6a7fff8a25345594e |
|
BLAKE2b-256 | dcf4b4bc94e83f77ff3dea45271bd147fb114aef2bfe21840e42f1e1270769eb |
Close
Hashes for bareasgi_graphql_next-4.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4db3466e2bffe1fa20aaeec85b0f47b556d18332f34f871fcae4393154b2fb |
|
MD5 | 1196d4b24fb3edc975e61a389f214acb |
|
BLAKE2b-256 | 9ebf4e7c69c38906efcdb04a8c6dbc2bef77e989570339adb46d4eb1222470e9 |