GraphQL support for the bareASGI framework
Project description
# bareASGI-graphql-next
Graphql support for [bareASGI](http://github.com/rob-blackbourn/bareasgi) (read the [documentation](https://bareasgi-graphql-next.readthedocs.io/en/latest/))
The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.
## Installation
Install from the pie shop.
```bash
pip install bareasgi-graphql-next
```
## Usage
You can register the graphql controller with the `add_graphql_next` function.
```python
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)
```
Graphql support for [bareASGI](http://github.com/rob-blackbourn/bareasgi) (read the [documentation](https://bareasgi-graphql-next.readthedocs.io/en/latest/))
The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.
## Installation
Install from the pie shop.
```bash
pip install bareasgi-graphql-next
```
## Usage
You can register the graphql controller with the `add_graphql_next` function.
```python
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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7451a2d280b1d533a32e28df2988124b34d34e808e074764edbb70fba26c8b2e |
|
MD5 | 2e846acad42e1bac94a18dfa0ef1e12f |
|
BLAKE2b-256 | b3985f9332fa77dc4fa07d734af0352792b92d60cb7d453c19b17990210f1479 |
Close
Hashes for bareasgi_graphql_next-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacafc201a8a6f6da022022f7ce5e0f92a63007006447a1f93ad3e2a59a3446c |
|
MD5 | 0a7762d6d930fc0f4c506beccda8791e |
|
BLAKE2b-256 | 2923b81248d53bf66d136894fb9f001a20606442b5fc5d263449f5755d0a155e |