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-5.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a52ec0570b2eb1ef5e5d34ffde5aa88dadbf22bc893924e4c795ec03d711a5 |
|
MD5 | 8ae3eff19a9a4e22de49e3d2ceb84706 |
|
BLAKE2b-256 | 4cffd8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085 |
Close
Hashes for bareasgi_graphql_next-5.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc052e3dfa2010af68e99fb9a999eed8ea55822ab487dcf82908d8d5c039334e |
|
MD5 | c4b00ba1335c81e061b3f53ee887c84d |
|
BLAKE2b-256 | a2e484df991ec4927b83dfdb0583e3b36ca49c734b8989f8b3513bd140f81d14 |