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
Metadata
Release files for bareasgi-graphql-next 5.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bareasgi-graphql-next-5.0.4.tar.gz | 18.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bareasgi_graphql_next-5.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.5 kB
Release files / bareasgi-graphql-next-5.0.4.tar.gz
| Download URL | bareasgi-graphql-next-5.0.4.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61a52ec0570b2eb1ef5e5d34ffde5aa88dadbf22bc893924e4c795ec03d711a5
|
|
BLAKE2b-256 checksum How to use checksums |
4cffd8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.10 Darwin/21.6.0
|
Release files / bareasgi_graphql_next-5.0.4-py3-none-any.whl
| Download URL | bareasgi_graphql_next-5.0.4-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc052e3dfa2010af68e99fb9a999eed8ea55822ab487dcf82908d8d5c039334e
|
|
BLAKE2b-256 checksum How to use checksums |
a2e484df991ec4927b83dfdb0583e3b36ca49c734b8989f8b3513bd140f81d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.10 Darwin/21.6.0
|