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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89377c0af80351e8800a3549973be0de74576a9dc9db910bc888da86cf6ff178 |
|
MD5 | 64c8039be20cdadc5f72cd847cb27158 |
|
BLAKE2b-256 | 91f0849a6e58bfde2e5b39f5591308d77a3fe3094435b5470442d6c7a2a681fc |
Close
Hashes for bareasgi_graphql_next-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5cd605a1e689bb148de88e7029819f1f99fdfba9c676aab8fcf9b64466d2629 |
|
MD5 | 5df0e948a50d426047041627fc03fb97 |
|
BLAKE2b-256 | abf475fc41d07a43950abcf07f56177a5e6665c82a20221ad87b959f9a80bda8 |