All Projects → simonw → datasette-ripgrep

simonw / datasette-ripgrep

Licence: other
Web interface for searching your code using ripgrep, built as a Datasette plugin

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to datasette-ripgrep

datasette-render-images
Datasette plugin that renders binary blob images using data-uris
Stars: ✭ 14 (-75.86%)
Mutual labels:  datasette, datasette-plugin, datasette-io
datasette-publish-vercel
Datasette plugin for publishing data using Vercel
Stars: ✭ 30 (-48.28%)
Mutual labels:  datasette, datasette-plugin, datasette-io
datasette-dashboards
Datasette plugin providing data dashboards from metadata
Stars: ✭ 65 (+12.07%)
Mutual labels:  datasette, datasette-plugin, datasette-io
datasette-cluster-map
Datasette plugin that shows a map for any data with latitude/longitude columns
Stars: ✭ 51 (-12.07%)
Mutual labels:  datasette, datasette-plugin, datasette-io
pocket-to-sqlite
Create a SQLite database containing data from your Pocket account
Stars: ✭ 56 (-3.45%)
Mutual labels:  datasette, datasette-io
google-takeout-to-sqlite
Save data from Google Takeout to a SQLite database
Stars: ✭ 73 (+25.86%)
Mutual labels:  datasette, datasette-io
dogsheep-photos
Upload your photos to S3 and import metadata about them into a SQLite database
Stars: ✭ 156 (+168.97%)
Mutual labels:  datasette, datasette-io
Datasette
An open source multi-tool for exploring and publishing data
Stars: ✭ 5,640 (+9624.14%)
Mutual labels:  datasette, datasette-io
healthkit-to-sqlite
Convert an Apple Healthkit export zip to a SQLite database
Stars: ✭ 130 (+124.14%)
Mutual labels:  datasette, datasette-io
AwsTerm
A collection of awesome terminal utilities
Stars: ✭ 37 (-36.21%)
Mutual labels:  ripgrep
dbf-to-sqlite
CLI tool for converting DBF files (dBase, FoxPro etc) to SQLite
Stars: ✭ 31 (-46.55%)
Mutual labels:  datasette-io
museums
A website recommending niche museums to visit
Stars: ✭ 30 (-48.28%)
Mutual labels:  datasette
cosy
阿里云智能编码插件(Alibaba Cloud AI Coding Assistant)是一款AI编程助手,它提供代码智能补全和IDE内的代码示例搜索能力,帮助你更快更高效地写出高质量代码。
Stars: ✭ 211 (+263.79%)
Mutual labels:  codesearch
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+72.41%)
Mutual labels:  ripgrep
evernote-to-sqlite
Tools for converting Evernote content to SQLite
Stars: ✭ 28 (-51.72%)
Mutual labels:  datasette-io
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+184.48%)
Mutual labels:  ripgrep
cgrep
grep for C/C++ source files.
Stars: ✭ 22 (-62.07%)
Mutual labels:  codesearch
datasette.io
The official project website for Datasette
Stars: ✭ 48 (-17.24%)
Mutual labels:  datasette
django-sql-dashboard
Django app for building dashboards using raw SQL queries
Stars: ✭ 369 (+536.21%)
Mutual labels:  datasette-io
goodreads-to-sqlite
Export your (or other people's) Goodreads data to SQLite
Stars: ✭ 62 (+6.9%)
Mutual labels:  datasette

datasette-ripgrep

PyPI Changelog Tests License

Web interface for searching your code using ripgrep, built as a Datasette plugin

For background on this project see datasette-ripgrep: deploy a regular expression search engine for your source code.

Demo

Try this plugin out at https://ripgrep.datasette.io/-/ripgrep - where you can run regular expression searches across the source code of Datasette and all of the datasette-* plugins belonging to the simonw GitHub user.

Some example searches:

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.

Create a metadata.json file that looks like this:

{
    "plugins": {
        "datasette-ripgrep": {
            "path": "/path/to/your/files"
        }
    }
}

Now run Datasette using datasette -m metadata.json. The plugin will add an interface at /-/ripgrep for running searches.

Plugin configuration

The "path" configuration is required. Optional extra configuration options are:

  • time_limit - floating point number. The rg process will be terminated if it takes longer than this limit. The default is one second, 1.0.
  • max_lines - integer. The rg process will be terminated if it returns more than this number of lines. The default is 2000.

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].