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
If you wish to install with the grapheme option:
pip install 'bareasgi-graphql-next[graphene]'
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)
Development
To develop with the graphene optional package:
poetry install --extras graphene
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.12.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3c890057f39910aaed423d9ef98e9551861df457a505735a8f517f6e3146c8 |
|
MD5 | 94bb3429c2a938af4650abc656ea04de |
|
BLAKE2b-256 | 9a22de0107869267b6998372ea64b6634db19832b04916819a5ebaaf9006f725 |
Close
Hashes for bareasgi_graphql_next-3.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f032af5952944c3770737453ca1c14eeb3591f0b27f4b03493fccb9b8d2abbea |
|
MD5 | 5c7da91db4ada3d0e6f7453b03d44cce |
|
BLAKE2b-256 | 889860fed66db7e5fd3f126d9a299add4a2a53495fdf23bc9206941713adf71c |