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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8de5c9c5a0b3dc9cd0f9488454187d3a43b6c184e8edbd9d14ca3e64f49a15 |
|
MD5 | a2016984f576fa135e6ff81d5b866169 |
|
BLAKE2b-256 | 2b19b232d9169ff2955d554553309e69970883400956c9662e81f67a84efd5e9 |
Close
Hashes for bareasgi_graphql_next-4.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13175f68d00dad079b3f30a700b1fdb9c684a5f3f3d83a6900f5dca255ab049d |
|
MD5 | 9a6454539bf98e865d62933832785141 |
|
BLAKE2b-256 | 502e4f5434f206f8f4915a15b9c391593a82a05dbdb4434ed9d28803599cdcbe |