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.12.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d140f44694c42900904ca42ca14e9cb7fc568deed1659a6946001d4047e3b82 |
|
MD5 | 8d956d0fc417ca37a83e134a5692738e |
|
BLAKE2b-256 | d5c14e7e66707182a0039aa0b954fc7afe451fc95e3e428c7e60623695a72db0 |
Close
Hashes for bareasgi_graphql_next-3.12.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ad7bfcd478c15984c08f63c23a09d0083fce79099cf3b1f6b583b6f5132b01 |
|
MD5 | cf727344a10467328b96d78f59cf3ec5 |
|
BLAKE2b-256 | 5ad16236795a6918a19ed32717d4ea7f87c7220f883e97bb961eb6a651c4b6a3 |