Datasette plugin for searching all searchable tables at once
Project description
datasette-search-all
Datasette plugin for searching all searchable tables at once.
Installation
Install the plugin in the same Python environment as Datasette:
pip install datasette-search-all
Background
See datasette-search-all: a new plugin for searching multiple Datasette tables at once for background on this project. You can try the plugin out at https://fara.datasettes.com/
Usage
This plugin only works if at least one of the tables connected to your Datasette instance has been configured for SQLite's full-text search.
The Datasette search documentation includes details on how to enable full-text search for a table.
You can also use the following tools:
- sqlite-utils includes a command-line tool for enabling full-text search.
- datasette-enable-fts is a Datasette plugin that adds a web interface for enabling search for specific columns.
If the plugin detects at least one searchable table it will add a search form to the homepage.
You can also navigate to /-/search
on your Datasette instance to use the search interface directly.
Screenshot
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-search-all
python -m venv 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
To run the browser automation tests:
pip install -e '.[test,playwright]'
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
Hashes for datasette-search-all-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675e367fb4d3c9b198897208984e69312c51bcaedd4644a01bf215db786dead8 |
|
MD5 | 1912e2c2821f03576820316c058944ec |
|
BLAKE2b-256 | 4626b7b37039450d3f07b8b6860d9be4549b68e1eb3ba43ac372dc5f9d991dc7 |
Hashes for datasette_search_all-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9d9c12208a2174a6334320753fdb48a6b55bab0828ae5876605907885d23dd |
|
MD5 | 27f032eb7fdc3fc6ce7e8aa95a295b2f |
|
BLAKE2b-256 | 54df9d03e57224420b3e8759b813f291201844b9749171bc0b1369f70101315a |