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-4.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 224db7d7d0df4eef16080a956133ca310dc053ee2040c40d2e037fec3f6af9b9 |
|
MD5 | 4f40906e09cb0a769378a2f1f79abe8a |
|
BLAKE2b-256 | 5ab79dbedf35e8d350fdbb77dd7294c3b242c14a54acfc25202fc7c453bf420b |
Close
Hashes for bareasgi_graphql_next-4.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a03f9910c46c280457d90bc0a86fcadd293066e89d1fdc75be300aef6aa34cd |
|
MD5 | a3d227b3e88202b827f83b4ea5e5befa |
|
BLAKE2b-256 | 41820c3a556b68adafe41f733060f24c04d3f69818819637ef42cae801e1b2cf |