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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e04953a4ebf34d28045c9ed13446e02fe1fddfbf02016974014dd0c891f6056a |
|
MD5 | ffcf2223bef59f71090182d642eebd17 |
|
BLAKE2b-256 | cb8fdf3ff675c525f258ca8f6fc401323e09fe529a744e12920311677b8a3579 |
Close
Hashes for bareasgi_graphql_next-4.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ed8bf8bb4d013472344af698b41d99f0ac066ae74cdae794957505b5842555 |
|
MD5 | 1e420daa9630361216ecba2692744d9e |
|
BLAKE2b-256 | 78625c1b8e5bef8522bdb2a537db15c3ac5c2140153cd3c3c3d99196b9878b19 |