bareasgi-graphql-next


Namebareasgi-graphql-next JSON
Version 5.0.4 PyPI version JSON
download
home_pagehttps://github.com/rob-blackbourn/bareasgi-graphql-next
SummaryGraphQL support for the bareASGI framework
upload_time2023-04-27 08:29:09
maintainer
docs_urlNone
authorRob Blackbourn
requires_python>=3.8,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rob-blackbourn/bareasgi-graphql-next",
    "name": "bareasgi-graphql-next",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Rob Blackbourn",
    "author_email": "rob.blackbourn@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4c/ff/d8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085/bareasgi-graphql-next-5.0.4.tar.gz",
    "platform": null,
    "description": "# bareASGI-graphql-next\n\nGraphql support for [bareASGI](http://github.com/rob-blackbourn/bareASGI) (read the [documentation](https://rob-blackbourn.github.io/bareASGI-graphql-next/))\n\nThe controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.\n\n## Installation\n\nInstall from the pie shop.\n\n```bash\npip install bareasgi-graphql-next\n```\n\nIf you wish to install with the grapheme option:\n\n```bash\npip install 'bareasgi-graphql-next[graphene]'\n```\n\n## Usage\n\nYou can register the graphql controller with the `add_graphql_next` function.\n\n```python\nfrom bareasgi import Application\nfrom bareasgi_graphql_next import add_graphql_next\nimport graphql\n\n# Get the schema ...\nschema = graphql.GraphQLSchema( ... )\n\nimport uvicorn\n\napp = Application()\nadd_graphql_next(app, schema)\n\nuvicorn.run(app, port=9009)\n\n```\n\n## Development\n\nTo develop with the graphene optional package:\n\n```bash\npoetry install --extras graphene\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "GraphQL support for the bareASGI framework",
    "version": "5.0.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2e484df991ec4927b83dfdb0583e3b36ca49c734b8989f8b3513bd140f81d14",
                "md5": "c4b00ba1335c81e061b3f53ee887c84d",
                "sha256": "bc052e3dfa2010af68e99fb9a999eed8ea55822ab487dcf82908d8d5c039334e"
            },
            "downloads": -1,
            "filename": "bareasgi_graphql_next-5.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c4b00ba1335c81e061b3f53ee887c84d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 24398,
            "upload_time": "2023-04-27T08:29:12",
            "upload_time_iso_8601": "2023-04-27T08:29:12.043482Z",
            "url": "https://files.pythonhosted.org/packages/a2/e4/84df991ec4927b83dfdb0583e3b36ca49c734b8989f8b3513bd140f81d14/bareasgi_graphql_next-5.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cffd8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085",
                "md5": "8ae3eff19a9a4e22de49e3d2ceb84706",
                "sha256": "61a52ec0570b2eb1ef5e5d34ffde5aa88dadbf22bc893924e4c795ec03d711a5"
            },
            "downloads": -1,
            "filename": "bareasgi-graphql-next-5.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8ae3eff19a9a4e22de49e3d2ceb84706",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 18100,
            "upload_time": "2023-04-27T08:29:09",
            "upload_time_iso_8601": "2023-04-27T08:29:09.335839Z",
            "url": "https://files.pythonhosted.org/packages/4c/ff/d8c476351efeb4bd50ec9e60e68f67878141587e5eed0184063298c79085/bareasgi-graphql-next-5.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-27 08:29:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "rob-blackbourn",
    "github_project": "bareasgi-graphql-next",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "bareasgi-graphql-next"
}
        
Elapsed time: 0.06512s