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
Release history Release notifications | RSS feed
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371de80eff4f2f0e5ba70cc8efcdd68c1089ebf03d743febced250012d678911 |
|
MD5 | 2e14ec4858e788d8b9acd9ee9f7ef5dc |
|
BLAKE2b-256 | 333d2111599e89583f9415b8e1e89f4b57f2dd41833f95ab023ea54157c9e636 |
Hashes for datasette_search_all-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8590099131899f5cb9d51d90a857ed3a828a5d8e2003fd3f0f5939a1a6bc7a8d |
|
MD5 | b1e62059f7c8c6d25d98323e64e2baf7 |
|
BLAKE2b-256 | 1f573d7535970622b175527e1fc270db0c193df8008ab56c2b8e628a373cdafe |