# datasette-granian
[![PyPI](https://img.shields.io/pypi/v/datasette-granian.svg)](https://pypi.org/project/datasette-granian/)
[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-granian?include_prereleases&label=changelog)](https://github.com/simonw/datasette-granian/releases)
[![Tests](https://github.com/simonw/datasette-granian/workflows/Test/badge.svg)](https://github.com/simonw/datasette-granian/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-granian/blob/main/LICENSE)
Run Datasette using the Granian HTTP server
## Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-granian
## Usage
Run `datasette granian ...` instead of `datasette serve ...` - most options should remain the same.
```
% datasette granian fixtures.db content.db --crossdb
[INFO] Starting granian
[INFO] Listening at: 127.0.0.1:8001
[INFO] Booting worker-1 with pid: 92793
[INFO] Started worker-1
[INFO] Started worker-1 runtime-1
```
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-granian
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Raw data
{
"_id": null,
"home_page": "https://github.com/simonw/datasette-granian",
"name": "datasette-granian",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Simon Willison",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/08/c1/d504dffad06408f2bbaa3ba186e78df52a957cc8645b21df612627e712dd/datasette-granian-0.1a0.tar.gz",
"platform": null,
"description": "# datasette-granian\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-granian.svg)](https://pypi.org/project/datasette-granian/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-granian?include_prereleases&label=changelog)](https://github.com/simonw/datasette-granian/releases)\n[![Tests](https://github.com/simonw/datasette-granian/workflows/Test/badge.svg)](https://github.com/simonw/datasette-granian/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-granian/blob/main/LICENSE)\n\nRun Datasette using the Granian HTTP server\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n datasette install datasette-granian\n\n## Usage\n\nRun `datasette granian ...` instead of `datasette serve ...` - most options should remain the same.\n\n```\n% datasette granian fixtures.db content.db --crossdb\n[INFO] Starting granian\n[INFO] Listening at: 127.0.0.1:8001\n[INFO] Booting worker-1 with pid: 92793\n[INFO] Started worker-1\n[INFO] Started worker-1 runtime-1\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n cd datasette-granian\n python3 -m venv venv\n source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n pip install -e '.[test]'\n\nTo run the tests:\n\n pytest\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Run Datasette using the Granian HTTP server",
"version": "0.1a0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df135047fba70dad4a2da6b6468b9f2dc3e5d47bde6a88ee7c63845b76023d20",
"md5": "8c61bce851f14a80f141feeb766dfbba",
"sha256": "280d9da176ccbc7f7fcac4f060b1abd400dedf2675dc9ec9d7fbf23e4a33f8ec"
},
"downloads": -1,
"filename": "datasette_granian-0.1a0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8c61bce851f14a80f141feeb766dfbba",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7333,
"upload_time": "2023-01-20T01:51:07",
"upload_time_iso_8601": "2023-01-20T01:51:07.087462Z",
"url": "https://files.pythonhosted.org/packages/df/13/5047fba70dad4a2da6b6468b9f2dc3e5d47bde6a88ee7c63845b76023d20/datasette_granian-0.1a0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "08c1d504dffad06408f2bbaa3ba186e78df52a957cc8645b21df612627e712dd",
"md5": "1bbd95b716bc0a229f1a1bf326311091",
"sha256": "13b1df4988138ebfa55f611c08a1f68b86b8c377de7002980bc053cb9b5acbb3"
},
"downloads": -1,
"filename": "datasette-granian-0.1a0.tar.gz",
"has_sig": false,
"md5_digest": "1bbd95b716bc0a229f1a1bf326311091",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6870,
"upload_time": "2023-01-20T01:51:08",
"upload_time_iso_8601": "2023-01-20T01:51:08.318337Z",
"url": "https://files.pythonhosted.org/packages/08/c1/d504dffad06408f2bbaa3ba186e78df52a957cc8645b21df612627e712dd/datasette-granian-0.1a0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-20 01:51:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "simonw",
"github_project": "datasette-granian",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "datasette-granian"
}