One-person data business? Do it the right way or don’t bother.
Here’s the stack I’d bet my last dollar on—no compromises, no “maybe later” tools.
────────────────────────────────────────
- Core Philosophy
• Own the data, own the pipeline, own the revenue.
• Cloud is rented, code is yours.
• Everything is version-controlled or it doesn’t exist.
────────────────────────────────────────
2. Toolchain (locked-in choices)
| Layer | Tool | Why it’s non-negotiable |
|---|
| Language | Python 3.11+ | Rich data libs, async, type hints. |
| Notebook | JupyterLab inside VS Code | One IDE to rule them all. |
| Storage | DuckDB files on local NVMe + S3 Glacier Deep Archive | OLAP speed without a server; pennies for cold storage. |
| Pipeline | Dagster Cloud (free tier) | Asset-based, typed, self-healing. |
| API | FastAPI + Uvicorn | Async, auto-docs, 5 ms overhead. |
| Dashboard | Streamlit Cloud (free) | 30 lines of Python → shareable web app. |
| Versioning | Git + DVC | Git for code, DVC for 50 GB datasets. |
| Infra | Docker + Fly.io | fly deploy and you’re live in 30 s. |
| Monitoring | Prometheus + Grafana Cloud (free tier) | Metrics or it didn’t happen. |
| Secrets | 1Password CLI | No .env files floating around. |
────────────────────────────────────────
3. Daily Workflow (ruthlessly opinionated)
# 06:30 – Pull fresh data
dvc pull
dagster job execute -j daily_ingest
# 07:00 – Exploratory analysis
code notebooks/eda.ipynb # JupyterLab inside VS Code
# 08:00 – Commit & push
git add . && git commit -m "feat: add 2024-Q2 sales"
dvc push && git push
# 08:15 – Re-deploy API
fly deploy --build-arg GIT_SHA=$(git rev-parse HEAD)
# 08:20 – Check Grafana dashboard
open https://grafana.fly.dev/d/data-health
────────────────────────────────────────
4. Folder Layout (religious about it)
dataset-business/
├── src/
│ ├── ingest.py # Dagster assets
│ ├── transform.py
│ └── api.py # FastAPI
├── notebooks/
├── data/raw.dvc
├── data/processed.dvc
├── dashboards/
│ └── app.py # Streamlit
├── infra/
│ ├── Dockerfile
│ └── fly.toml
└── tests/
────────────────────────────────────────
5. Revenue Model (pick one and double-down)
| Model | Stack Add-on |
|---|
| Subscription CSV/API | Stripe + FastAPI rate-limiting |
| Consulting reports | Streamlit → PDF via WeasyPrint |
| Data enrichment | DuckDB + MotherDuck sharing |
────────────────────────────────────────
6. Hard Rules (break them and you’re fired)
- No manual edits to data/ – everything via Dagster.
- No notebooks in prod – convert to assets.
- No Snowflake / BigQuery – you’ll burn runway on egress.
- No Excel exports – customers get Parquet or JSONL.
- No Slack for alerts – Prometheus → PagerDuty or bust.
────────────────────────────────────────
7. One-Command Bootstrap
curl -fsSL https://raw.githubusercontent.com/yourname/dataset-template/main/init.sh | bash
Script scaffolds the entire repo, installs pre-commit hooks, spins up a Fly.io app, and seeds DuckDB with a sample 1 GB dataset. Done in 90 seconds.
────────────────────────────────────────
Run it lean, run it mean, own every byte.