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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5df4beddd30130fb58ec9c88003490cdf9806738636650360a57f8547f15477 |
|
MD5 | b4baf6be4fe43b3323d02abb4695c6b0 |
|
BLAKE2b-256 | 21b5d4a6e5799c555b31a9e51dd3b37b69336367758ab11e8ce63284d04b2228 |
Close
Hashes for bareasgi_graphql_next-5.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe82fbfbf4584b91f523a914671894bd4f8ee1e2300c9b1dca025249e6a20516 |
|
MD5 | b50b93ee1c59d3310ab56007a0c7fed0 |
|
BLAKE2b-256 | ee8eca3825e64776024fee00645c3c25744d848c6353b9322c71c1ebba8d00d9 |