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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5692998a825a96a86730386496a7665a179b4d20e511a2717ed41a744118ad68 |
|
MD5 | ef4edb346d1fe091f9af7654dcecc97c |
|
BLAKE2b-256 | 0237fb96af405ad0a9efe80bee1945c1fd7375729d5c67ae09ad284c5dbce7b2 |
Close
Hashes for bareasgi_graphql_next-3.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05594594897b5328d53b3ffadd3fcfc2e959038b42265d2270c0dabf2562cf8 |
|
MD5 | dc66c684ea84f2e246dc086b2e1e4715 |
|
BLAKE2b-256 | b62e72d38319266a941bb6549278c049d42ebe0d5bc3added74a573d076bdc95 |