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.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640a83a69dfa1f07a38d8fb058b98ce7477c7ea3aa7bf267f376f1c59780e7e8 |
|
MD5 | fc0f5f8ebaa91905424ad87ec972989e |
|
BLAKE2b-256 | 03849238958646b210454ef713c8ed6a5566252e5a99005032d0947f9e131e77 |