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
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)
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.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b271e8c61475c454610a8ba044a2dd9ade6c9a976827a7dd48457714a51d271 |
|
MD5 | 7e0fc56db061c1bb948ee0b5d595c461 |
|
BLAKE2b-256 | e9f55b3ae7f01ac101d6ee061ea1ac979b025145cbd17b113af8466b1ae42ccd |
Close
Hashes for bareasgi_graphql_next-3.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1ceed1553d08e89b3f2addb5dd517bc3a0cf52d3b491436f8a25cdf8bba325 |
|
MD5 | 9f55ba3a29c061807fb198402a6b7c23 |
|
BLAKE2b-256 | 0562378e01b2ccab98e8708b1e3fa3fa7bdc6f673f504db375673495c33232e8 |