bareasgi-graphql-next-5.0.4
توضیحات
GraphQL support for the bareASGI framework
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bareasgi-graphql-next-5.0.4 |
| نام | bareasgi-graphql-next |
| نسخه کتابخانه | 5.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Rob Blackbourn |
| ایمیل نویسنده | rob.blackbourn@gmail.com |
| آدرس صفحه اصلی | https://github.com/rob-blackbourn/bareasgi-graphql-next |
| آدرس اینترنتی | https://pypi.org/project/bareasgi-graphql-next/ |
| مجوز | Apache-2.0 |
# bareASGI-graphql-next
Graphql support for [bareASGI](http://github.com/rob-blackbourn/bareASGI) (read the [documentation](https://rob-blackbourn.github.io/bareASGI-graphql-next/))
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
```
If you wish to install with the grapheme option:
```bash
pip install 'bareasgi-graphql-next[graphene]'
```
## 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)
```
## Development
To develop with the graphene optional package:
```bash
poetry install --extras graphene
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.0.0,<5.0.0 | bareASGI |
| >=3.1,<4.0 | graphql-core |
| >=3.0,<4.0) | graphene |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl bareasgi-graphql-next-5.0.4:
pip install bareasgi-graphql-next-5.0.4.whl
نصب پکیج tar.gz bareasgi-graphql-next-5.0.4:
pip install bareasgi-graphql-next-5.0.4.tar.gz