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.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe160b0eb16835cfa238cf0fb1d095a13ed5131a3743216a47aa8d573455f5d |
|
MD5 | 495c60ecec71a44a9b8a046824a5c0da |
|
BLAKE2b-256 | 7ad23b0e5782b56594e27ea2379c4e5f3341b2bbc37cc4d6e84e6e2c6505a091 |
Close
Hashes for bareasgi_graphql_next-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7a3f5aaaf6eae3f30c3719a8fbb0109145c6ba971b0149a93d2974bc24b082 |
|
MD5 | 1d0839c2059167bbbd58c58760e3e90d |
|
BLAKE2b-256 | dfd36a84c5a216f4ba0696e3165ee50795639aa225de17e0f64befafffb58398 |