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.1.tar.gz (10.9 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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_queries-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 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.1.tar.gz
Algorithm Hash digest
SHA256 65acad4f8c0c887863fcf02c4d8d5677e608f22008870b6debeff0e866ba028c
MD5 34d86cc8493eaa2babf0c535876ce0fe
BLAKE2b-256 353604e117c9ca9a498a16fba792fd9ee222ec4ef4993b0a281bbb06b7b33c1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_queries-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_queries-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77e5fc6682ff15a17c59519d4c189443a4b16950a003be647ce69f27715c22a7
MD5 093f1c857eebce3725cb4641cc23cc37
BLAKE2b-256 36455b5fcef67d77f9da5929d17d9a9143e54ba0ac07f2c07cc6cbc973606a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_queries-0.1.1-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