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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9fbb946b601b2aff255f48827bc23b1c60023b2d64b68c9808ad131a354e4a |
|
MD5 | 6ffc8521ed158ab4abc1fd58a1483826 |
|
BLAKE2b-256 | dd2989d003c0bf733479d1a5494294fb2eff235f1402100aedbd09b550e34d15 |
Close
Hashes for bareasgi_graphql_next-3.12.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdee32f65d149d98c57935bfebe4bde8a808905cf33c8e2b66e579f7f746dd70 |
|
MD5 | b066addaeaa6a92f65278fdd00b6d27e |
|
BLAKE2b-256 | 1a79773df961ab19e75b74942955e9d88b2b615bd5edaab20ea0872078e6614a |