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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12bf1c755ccf6bc2dc36936d5d4a5cce03dc3c8deb2e7e3ed46f8965db64a74d |
|
MD5 | f1ddc4105be0f80dfb7bfc0bf7a2c4b9 |
|
BLAKE2b-256 | f2eb641607b5bfe595289d14e588c3abaf7c394913efee7e38e63d76f0e644b4 |
Close
Hashes for bareasgi_graphql_next-3.12.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd44efc5d6cc84741b0117255bc915d9f93fa2a7cc0a826fd721437ca14efaea |
|
MD5 | 97c54247983196fb70cac8fbf3efc373 |
|
BLAKE2b-256 | 08d1607c4b0bfc4732bb75435ba5d3a28a9220d8e05963117d6465ebbe8cf788 |