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-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef00d44271ff0e42ba4559253edf30eb604d331023aa727cdf6dc6d71fda58ef |
|
MD5 | 72d7f7a892909e51a1f15272d97cb53c |
|
BLAKE2b-256 | 6fedfc2a682739635ccfce1cc53df94b96f6fc379343098cebb7e5824b06e5aa |
Close
Hashes for bareasgi_graphql_next-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91727774f939465fe01e0fabc97974879444295844d9ccb5899ea248cc44b04 |
|
MD5 | fd7d62bf816b4f6cb6f3987844465099 |
|
BLAKE2b-256 | 41beb1218244abf0e950a1a2771cdcaadf48e964f456e9a854fcd8f1d2e70046 |