datasette-saved-queries


Namedatasette-saved-queries JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/simonw/datasette-saved-queries
SummaryDatasette plugin that lets users save and execute queries
upload_time2024-03-07 14:34:45
maintainer
docs_urlNone
authorSimon Willison
requires_python
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-saved-queries

[![PyPI](https://img.shields.io/pypi/v/datasette-saved-queries.svg)](https://pypi.org/project/datasette-saved-queries/)
[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-saved-queries?label=changelog)](https://github.com/simonw/datasette-saved-queries/releases)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-saved-queries/blob/master/LICENSE)

Datasette plugin that lets users save and execute queries

## Installation

Install this plugin in the same environment as Datasette.

    $ pip install datasette-saved-queries

## Usage

When the plugin is installed Datasette will automatically create a `saved_queries` table in the first connected database when it starts up.

It also creates a `save_query` writable canned query which you can use to save new queries.

Queries that you save will be added to the query list on the database page.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

    cd datasette-saved-queries
    python -mvenv venv
    source venv/bin/activate

Or if you are using `pipenv`:

    pipenv shell

Now install the dependencies and tests:

    pip install -e '.[test]'

To run the tests:

    pytest

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/simonw/datasette-saved-queries",
    "name": "datasette-saved-queries",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Simon Willison",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/05/9a/6af67ade32054861432423df3a9592ee9a03b8e57573a6397cddfee388ed/datasette-saved-queries-0.2.2.tar.gz",
    "platform": null,
    "description": "# datasette-saved-queries\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-saved-queries.svg)](https://pypi.org/project/datasette-saved-queries/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-saved-queries?label=changelog)](https://github.com/simonw/datasette-saved-queries/releases)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-saved-queries/blob/master/LICENSE)\n\nDatasette plugin that lets users save and execute queries\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n    $ pip install datasette-saved-queries\n\n## Usage\n\nWhen the plugin is installed Datasette will automatically create a `saved_queries` table in the first connected database when it starts up.\n\nIt also creates a `save_query` writable canned query which you can use to save new queries.\n\nQueries that you save will be added to the query 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\n    cd datasette-saved-queries\n    python -mvenv venv\n    source venv/bin/activate\n\nOr if you are using `pipenv`:\n\n    pipenv shell\n\nNow install the dependencies and tests:\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": "Datasette plugin that lets users save and execute queries",
    "version": "0.2.2",
    "project_urls": {
        "CI": "https://github.com/simonw/datasette-saved-queries/actions",
        "Changelog": "https://github.com/simonw/datasette-saved-queries/releases",
        "Homepage": "https://github.com/simonw/datasette-saved-queries",
        "Issues": "https://github.com/simonw/datasette-saved-queries/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "707805068e846f062c8e772b77ff72f9b4dbf6dedb4fd509a1fbb477285434b2",
                "md5": "40bf063c03a93e96e2daa6effa858001",
                "sha256": "f151ba8fe03828ee87a2e3f26df78022023684736d508fba2eb9ca372f2fe3b6"
            },
            "downloads": -1,
            "filename": "datasette_saved_queries-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "40bf063c03a93e96e2daa6effa858001",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2882,
            "upload_time": "2024-03-07T14:34:44",
            "upload_time_iso_8601": "2024-03-07T14:34:44.528096Z",
            "url": "https://files.pythonhosted.org/packages/70/78/05068e846f062c8e772b77ff72f9b4dbf6dedb4fd509a1fbb477285434b2/datasette_saved_queries-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "059a6af67ade32054861432423df3a9592ee9a03b8e57573a6397cddfee388ed",
                "md5": "44b0de6db76444a24ec48ac5135d9796",
                "sha256": "f78d40eb1c6f3f8bcaadd8d0ed9eafef28c1305c0eb7f5dbd02d95be0ad6b5d1"
            },
            "downloads": -1,
            "filename": "datasette-saved-queries-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "44b0de6db76444a24ec48ac5135d9796",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3260,
            "upload_time": "2024-03-07T14:34:45",
            "upload_time_iso_8601": "2024-03-07T14:34:45.893131Z",
            "url": "https://files.pythonhosted.org/packages/05/9a/6af67ade32054861432423df3a9592ee9a03b8e57573a6397cddfee388ed/datasette-saved-queries-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-07 14:34:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonw",
    "github_project": "datasette-saved-queries",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-saved-queries"
}
        
Elapsed time: 2.42644s