Metadata-Version: 2.1
Name: bareasgi-graphql-next
Version: 3.11.0
Summary: GraphQL support for the bareASGI framework
Home-page: https://github.com/rob-blackbourn/bareasgi-graphql-next
License: Apache-2.0
Author: Rob Blackbourn
Author-email: rob.blackbourn@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Provides-Extra: graphene
Requires-Dist: bareASGI (>=3,<4)
Requires-Dist: bareutils (>=3,<4)
Requires-Dist: graphql-core (>=3.1.0b1,<4.0.0)
Requires-Dist: jetblack-graphene (>=3.0b0,<4.0); extra == "graphene"
Project-URL: Repository, https://github.com/rob-blackbourn/bareasgi-graphql-next
Description-Content-Type: text/markdown

# 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
```

