| .. | ||
| migrations | ||
| shonar | ||
| tests | ||
| alembic.ini | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
S.H.O.N.A.R. backend (desktop bundled-lite)
FastAPI engine for SHONAR Desktop, running standalone on this machine: SQLite + in-process queue, self-migrating on boot. No Postgres/Redis/Docker.
Setup (this repo is self-contained)
cd backend
uv venv .venv && uv pip install -p .venv/bin/python -e ".[dev,faster-whisper]"
The app (DesktopState) creates this venv's env vars itself, including
HF_HUB_CACHE=models/hf-cache — the base faster-whisper model is vendored
under models/hf-cache/ (gitignored; copy from any HF cache to reprovision).
Tests: .venv/bin/python -m pytest (SQLite by default; point
SHONAR_TEST_DATABASE_URL at Postgres to test that path) · Lint: ruff check .
· Migrations: alembic upgrade head