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
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)
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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73144b7eaba22dd9e7fd27762fe3c82fb8090ab8b04cfe20b2d6a2428c6258d4 |
|
MD5 | 6af210d6e62699a1e4e7d19f56ef5dc8 |
|
BLAKE2b-256 | 492dc4b5e07745c0bdd46fdc9f5c22dc34775759989b1d79c906aca15b861653 |
Close
Hashes for bareasgi_graphql_next-3.10.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c84271daa857c7a9261b6c6ae7df4f8b4102734b454098829e657ad40458bc5 |
|
MD5 | 0bad36d457947bccfec2fe1201489391 |
|
BLAKE2b-256 | f1de1ff5d1ce844a1c72b4e437f04f33606f5f4fcc53f671e74b3532a771f1b8 |