Datasette plugin that lets users save and execute queries
Project description
datasette-saved-queries
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
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
Built Distribution
File details
Details for the file datasette-saved-queries-0.2.2.tar.gz
.
File metadata
- Download URL: datasette-saved-queries-0.2.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78d40eb1c6f3f8bcaadd8d0ed9eafef28c1305c0eb7f5dbd02d95be0ad6b5d1 |
|
MD5 | 44b0de6db76444a24ec48ac5135d9796 |
|
BLAKE2b-256 | 059a6af67ade32054861432423df3a9592ee9a03b8e57573a6397cddfee388ed |
File details
Details for the file datasette_saved_queries-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: datasette_saved_queries-0.2.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f151ba8fe03828ee87a2e3f26df78022023684736d508fba2eb9ca372f2fe3b6 |
|
MD5 | 40bf063c03a93e96e2daa6effa858001 |
|
BLAKE2b-256 | 707805068e846f062c8e772b77ff72f9b4dbf6dedb4fd509a1fbb477285434b2 |