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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 358e2b6a7cb216d5802bfd96ea4591e62c54bbd54a54c9c3c8ee3e5c5e8ec79f |
|
MD5 | b5dd9c04af118df88b53c00ede350655 |
|
BLAKE2b-256 | 7c4e5544b7166868770e4004a1de01567f821fc06d4ce37bb125cf6ab84721cf |
Close
Hashes for bareasgi_graphql_next-3.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ee195f821e6448aa97a0a1a83e7aee89b5e2a27684723984e6653f59ef65e8 |
|
MD5 | 872bbc2e071377a8acf0291de34e3833 |
|
BLAKE2b-256 | 0499d8d82f858f29dd6768a496f26236e0820d9720aeb5aac109114cef0cb7e2 |