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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7cd1f33ce8c3c0ff9f906cfd577985f0d339d2a3f5261e4b03fe4e56118762 |
|
MD5 | ca4a263266d0550d36bc5416759311aa |
|
BLAKE2b-256 | e2c4a5401eab0799bb72554196c21de90d2a73c8de85025fd38caba7f45590f3 |
Close
Hashes for bareasgi_graphql_next-3.12.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90785186e84f8fa8338ae08ff38ac500c534802577fc3bf11981791707498bc6 |
|
MD5 | dcffab967f3030a3c0137fec422c9e73 |
|
BLAKE2b-256 | 0fe6d49518b78db41833a38ad2453e746a97a2b8e7192427811c1d265d4980c0 |