No description
  • HTML 48.3%
  • Python 47.7%
  • Dockerfile 4%
Find a file
2026-10-11 12:56:04 +02:00
templates Rename app to Rowhunter 2026-10-11 12:56:04 +02:00
.dockerignore Add Docker support with hardened compose setup and quick-start docs 2026-10-11 12:42:23 +02:00
.env.example Add Docker support with hardened compose setup and quick-start docs 2026-10-11 12:42:23 +02:00
.gitignore Add Docker support with hardened compose setup and quick-start docs 2026-10-11 12:42:23 +02:00
app.py Rename app to Rowhunter 2026-10-11 12:56:04 +02:00
compose.yml Rename app to Rowhunter 2026-10-11 12:56:04 +02:00
Dockerfile Add Docker support with hardened compose setup and quick-start docs 2026-10-11 12:42:23 +02:00
excel_search.py Raise default min score from 60 to 75 2026-10-11 12:32:28 +02:00
README.md Rename app to Rowhunter 2026-10-11 12:56:04 +02:00
requirements.txt Add Docker support with hardened compose setup and quick-start docs 2026-10-11 12:42:23 +02:00

Rowhunter

A tiny Flask app that fuzzy-searches every row of every Excel (.xlsx) or CSV file, with an admin page for uploading and deleting files.

Quick start

cp .env.example .env && sed -i "s/change-me/$(python3 -c 'import secrets; print(secrets.token_hex(32))')/" .env && docker compose up -d --build

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Run

python app.py

Then open:

Run with Docker

cp .env.example .env    # then paste a generated secret into .env:
python3 -c "import secrets; print(secrets.token_hex(32))"
docker compose up -d --build

The app is then on http://localhost:8080/ (search) and http://localhost:8080/admin (upload / delete). Files persist in the uploads named volume; the container runs as a non-root user with a read-only filesystem and all capabilities dropped.

Your pre-existing ./uploads files are not copied into the volume automatically. To migrate them:

docker compose cp uploads/. web:/app/uploads/
docker compose restart web   # the index is built at startup

How it works

  • All .xlsx and .csv files in uploads/ are indexed in memory at startup and after every upload/delete — no database.
  • Every non-empty row of every sheet is indexed; the first non-empty row of each sheet is used as the column header. Repeated header names get #2, #3 … suffixes so no cell value is lost.
  • A CSV file is indexed as a single sheet named after the file without its extension (data.csv → data). Delimiter is sniffed (, ; tab |, defaulting to ,). Encoding is utf-8-sig with cp1252/latin-1 fallbacks; UTF-16 exports (BOM) are detected, and files that decode to binary control characters — e.g. a renamed workbook — are rejected as unreadable.
  • Search is fuzzy (rapidfuzz): word order and partial matches both count. Tune the Min score slider to loosen or tighten matching (0–100).

Notes

  • .xlsx and .csv are supported (max 50 MB per file).
  • The whole index lives in memory — a 50 MB workbook can expand to far more RAM once parsed, so keep that in mind before raising the limit.
  • Admin page is intentionally unprotected (POSTs carry a per-session CSRF token, but there is no login) — run locally, or put auth in front of it if you expose it.
  • The Werkzeug debugger is off by default; start with FLASK_DEBUG=1 python app.py to enable it while developing. Never expose the debugger — it allows arbitrary code execution.
  • Tailwind is loaded via the Play CDN, so an internet connection is needed while browsing.