Skip to main content

Save SQL queries in Datasette

Project description

datasette-queries

PyPI Changelog Tests License

Save SQL queries in Datasette

Installation

Install this plugin in the same environment as Datasette.

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) 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:

cd datasette-queries
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_queries-0.1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_queries-0.1.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file datasette_queries-0.1.2.tar.gz.

File metadata

  • Download URL: datasette_queries-0.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for datasette_queries-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b71d5e6a78e7a251989369b59a7e0745deafbe1a484388fd80eea71f80411d81
MD5 b132478ca1f724fdf8be02a283188abc
BLAKE2b-256 d2ef7c46e2df865fc2fa2763c220b9e425088ffa21303451d4d798c16ebcc942

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_queries-0.1.2.tar.gz:

Publisher: publish.yml on datasette/datasette-queries

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_queries-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_queries-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06ec92ee3bb4b15b35260c06dcb235eb0c68a102a403e50b5905e35a40af73d8
MD5 8a88824d2fb4283afa95836d420b30f1
BLAKE2b-256 c1868602e77fb9851ba28c5d655cfe4b22c7da44c4ea620b5017bd48d97b2d0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_queries-0.1.2-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-queries

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page