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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5abfb46f68dfc53f05c239bd59b9206b0591c330b4eca601b1b11376ae79d1 |
|
MD5 | 291b3199d8a99e3024e3f939bc968739 |
|
BLAKE2b-256 | 287149fb3a0592c0e1491dea9d73a899dd71e55711388a93f97dccf09d510957 |
Close
Hashes for bareasgi_graphql_next-4.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d25a6622fcf95add1bad5f4c772358526722e6cd4129d3ce0994ca9a0bda8a4 |
|
MD5 | 673da839b3ed7a8816b21f63b8272dcf |
|
BLAKE2b-256 | bc87009ead92c03c882a26e020acf9cc59ceb3ae6d74ac9738eef288167ebc9a |