Configurable Datasette plugin running ripgrep
Project description
datasette-ripgrep
HIGHLY EXPERIMENTAL: Configurable Datasette plugin running ripgrep
This plugin is a weird experiment. It probably shouldn't even be a Datasette plugin at all! Do not attempt to run this on a public Datasette instance.
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-ripgrep
The rg
executable needs to be installed such that it can be run by this tool.
Usage
This plugin requires configuration: it needs to a path
setting so that it knows where to run searches:
{
"plugins": {
"datasette-ripgrep": {
"path": "/path/to/your/files"
}
}
}
The plugin will add an interface at /-/ripgrep
for running searches.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-ripgrep
python3 -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
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_ripgrep-0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cc937c1c7025040599dbaed708f3e1e67a04370a6c4129d4760c3e59976a5d |
|
MD5 | fa9b00021aa8fa0b349ca8061642852f |
|
BLAKE2b-256 | afa896a374ac8863bd15beaf3441d20cd680c9df1d0864ee2a98a8392431ba7b |