Manual Installation¶
Install cast2md directly with Python for development or customized deployments.
Prerequisites¶
- Python 3.11+
- uv package manager (recommended) or pip
- PostgreSQL 15+ with pgvector extension
- ffmpeg
Setup¶
1. Install uv¶
2. Clone and Install¶
3. Set Up PostgreSQL¶
You can run PostgreSQL via Docker or install it natively.
4. Configure¶
Edit .env:
DATABASE_URL=postgresql://cast2md:your_password@localhost:5432/cast2md
STORAGE_PATH=./data/podcasts
TEMP_DOWNLOAD_PATH=./data/temp
WHISPER_MODEL=large-v3-turbo
WHISPER_DEVICE=cpu
WHISPER_COMPUTE_TYPE=int8
5. Initialize and Run¶
The server starts at http://localhost:8000.
Development Mode¶
For development with auto-reload:
Running with pip¶
If you prefer pip over uv:
Optional Dependencies¶
| Extra | Install | Purpose |
|---|---|---|
dev |
uv sync --extra dev |
Testing and linting (pytest, ruff, mkdocs) |
mlx |
uv sync --extra mlx |
Apple Silicon MLX Whisper backend |
node |
pip install cast2md[node] |
Minimal install for transcriber nodes |