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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d804be8ff4dadc69151b2505bc64ae41a586767f27a4a149026b956a3a8ed8 |
|
MD5 | e51e1ff7b9efd8472fc89d59c4bf5eb6 |
|
BLAKE2b-256 | 485eb5d8d245a3318d4ceb00b16cef89ba3fa0b7ae4002fe70550942e9d9e55a |
Close
Hashes for bareasgi_graphql_next-5.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac2bd5fe270f6c18f8c02565e200a2cb0bb9e5d9154ae4075250b628c36b821 |
|
MD5 | 535efba71940408319e4b7340b1c1bb6 |
|
BLAKE2b-256 | 444a16b9d8204017a0130c4345487020aa8670313af54f436d089fa22eb4a921 |