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.10.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 518b8b423eea306c25e1a34f29f21c4c5b322008ac090c135169da4084e14ea4 |
|
MD5 | 3bc2077c1ded2a80e000a702c663587b |
|
BLAKE2b-256 | 3235a71ad2eaa3b04207b23bfe72ffb281f13b200f6063e77c296e7041d59062 |
Close
Hashes for bareasgi_graphql_next-3.10.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f18bdec936a28ce8dce565f0a9cfeda5362bf16547c797680784445571eda8 |
|
MD5 | 5e32394b2dfe2e222f0f5f3e61b3ccc0 |
|
BLAKE2b-256 | 56a0ce2f1ff765f5f7d9dfd543d6e770eae944f0ba45ff74c03c56dc1a85400c |