Name | datasette-queries JSON |
Version |
0.1a0
JSON |
| download |
home_page | None |
Summary | Save SQL queries in Datasette |
upload_time | 2024-12-03 23:55:26 |
maintainer | None |
docs_url | None |
author | Simon Willison |
requires_python | >=3.9 |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# datasette-queries
[![PyPI](https://img.shields.io/pypi/v/datasette-queries.svg)](https://pypi.org/project/datasette-queries/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-queries?include_prereleases&label=changelog)](https://github.com/datasette/datasette-queries/releases)
[![Tests](https://github.com/datasette/datasette-queries/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-queries/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-queries/blob/main/LICENSE)
Save SQL queries in Datasette
## Installation
Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-queries
```
## Usage
Users with the `datasette-queries` permission will see a new UI element on the results of a SQL query inviting them to save that query.
Saved queries (treated as [canned queries](https://docs.datasette.io/en/stable/sql_queries.html#canned-queries)) are then shown as a list on the database page.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-queries
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```
Raw data
{
"_id": null,
"home_page": null,
"name": "datasette-queries",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Simon Willison",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/f6/95/5aeba79298c33c35627b3064f7d1e7af6a9f51a6d6f567225de50ea2900e/datasette_queries-0.1a0.tar.gz",
"platform": null,
"description": "# datasette-queries\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-queries.svg)](https://pypi.org/project/datasette-queries/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-queries?include_prereleases&label=changelog)](https://github.com/datasette/datasette-queries/releases)\n[![Tests](https://github.com/datasette/datasette-queries/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-queries/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-queries/blob/main/LICENSE)\n\nSave SQL queries in Datasette\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-queries\n```\n## Usage\n\nUsers with the `datasette-queries` permission will see a new UI element on the results of a SQL query inviting them to save that query.\n\nSaved queries (treated as [canned queries](https://docs.datasette.io/en/stable/sql_queries.html#canned-queries)) are then shown as a list on the database page.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-queries\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npython -m pytest\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Save SQL queries in Datasette",
"version": "0.1a0",
"project_urls": {
"CI": "https://github.com/datasette/datasette-queries/actions",
"Changelog": "https://github.com/datasette/datasette-queries/releases",
"Homepage": "https://github.com/datasette/datasette-queries",
"Issues": "https://github.com/datasette/datasette-queries/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2d76bff9e600a1037f5914af3bac20592d61322fd31ed6e98fd09a47f269fd7f",
"md5": "3f7a93c1ad5dcea11bcf907a2e02c8ea",
"sha256": "baec329ae70272d21608585967a030bff79b52ef36503702dc8188b5235e4374"
},
"downloads": -1,
"filename": "datasette_queries-0.1a0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3f7a93c1ad5dcea11bcf907a2e02c8ea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 10659,
"upload_time": "2024-12-03T23:55:24",
"upload_time_iso_8601": "2024-12-03T23:55:24.227224Z",
"url": "https://files.pythonhosted.org/packages/2d/76/bff9e600a1037f5914af3bac20592d61322fd31ed6e98fd09a47f269fd7f/datasette_queries-0.1a0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f6955aeba79298c33c35627b3064f7d1e7af6a9f51a6d6f567225de50ea2900e",
"md5": "1fd1172a2b4058146bcfe2520bc64188",
"sha256": "0f874820e77aeaa9015d0eea6f5ba32bd475e0ec6670cee69232419763b0e61d"
},
"downloads": -1,
"filename": "datasette_queries-0.1a0.tar.gz",
"has_sig": false,
"md5_digest": "1fd1172a2b4058146bcfe2520bc64188",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 10535,
"upload_time": "2024-12-03T23:55:26",
"upload_time_iso_8601": "2024-12-03T23:55:26.482253Z",
"url": "https://files.pythonhosted.org/packages/f6/95/5aeba79298c33c35627b3064f7d1e7af6a9f51a6d6f567225de50ea2900e/datasette_queries-0.1a0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-03 23:55:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "datasette",
"github_project": "datasette-queries",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "datasette-queries"
}