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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d1698fd69c70c8ba8a879b8839bcfc37fecb4fe787c6b46faad1da8c3c67462 |
|
MD5 | 420678c4f2de29868f4c2022acc1522a |
|
BLAKE2b-256 | d47776934ad4c0a60291663aa012df4978e96d7033cec0fc717a920c3959cedf |
Close
Hashes for bareasgi_graphql_next-5.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8462cff511dcee00f0ce16c376e29f03c1197409a13403be0454264b4caf4f2 |
|
MD5 | fa8927bea9396b0e8ea89c2bc5f88933 |
|
BLAKE2b-256 | dfd0a116dc3a064962363ee4c1c95219777a190c0bcd844ea666136e084b7c34 |