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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de96fe3e1a9f7339db59731026e9e2db1e1e1601a751685364a02b0fd4308e8 |
|
MD5 | 8e0c9110cdb9834c9304a066577ec4c2 |
|
BLAKE2b-256 | cd9c0508ef0fe6ccfd4b9ba799f329a3d880640ac3221b8d062b688a219b6ae7 |
Close
Hashes for bareasgi_graphql_next-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b8f20d2e3c973985eb12d6bf97f1b06f68f7278cda767e7447db43996ba24d |
|
MD5 | d95efd440ee9027c731491cf79cf2658 |
|
BLAKE2b-256 | 1f5a7fdc52b2502c502f1617e638af4cffcbae5d0e543b081a338850d8c34ebb |