PFETL Analytics Studio
Local-first analytics & reporting UI for Personal Finance ETL — your numbers, your machine, zero cloud.
What's the vibe?
PFETL Analytics Studio is a read-only desktop/web UI built with NiceGUI and Plotly on top of Personal Finance ETL (PyPI) (PFETL Core).
PFETL Core already does the heavy lifting — ingestion, reconciliation, FIFO lot math, XIRR, tax classification, and FIRE simulations. Studio doesn't import personal-finance-etl or re-math any of that. It strictly reads the DuckDB warehouse, Control Plane SQLite, and TOML configs that Core already built, and turns them into interactive charts, drill-downs, read-only SQL, and exportable reports.
How it integrates with PFETL Core
Studio connects to PFETL Core purely through its output files and CLI/HTTP contract:
flowchart LR
subgraph CORE["PFETL Core Outputs"]
DUCK[("Personal_Finance_DB.duckdb")]
CP[("Control Plane SQLite")]
TOML["Settings + FinancialRules TOML"]
JSONL["Forensic JSONL"]
end
subgraph STUDIO["Analytics Studio (Read-Only)"]
APP["NiceGUI + Plotly UI"]
EXP["Explorer + Read-Only SQL"]
REP["Report Engine"]
end
subgraph OUT["Exports"]
PDF["PDF / PPTX"]
DATA["XLSX / CSV / PNG / SVG"]
end
DUCK --> APP
CP --> APP
TOML --> APP
JSONL --> APP
APP --> EXP
APP --> REP
REP --> PDF
REP --> DATA
| Core Input | What Studio Reads |
|---|---|
Personal_Finance_DB.duckdb |
Gold & Silver tables across all domains (read-only; respects pipeline.lock) |
| Control Plane SQLite | Run history, sync health, source registry, artifact events, provider requests, failures, retained payloads |
Settings.toml & FinancialRules.toml |
Active profile paths, currency, tax/FIRE rules, and config snapshots |
| Forensic JSONL | Run-level stage timings, worker activity, and diagnostic logs |
Studio keeps its own stuff (Saved Views, custom report layouts, runtime metadata) in a separate local SQLite via platformdirs — Core's files stay completely untouched.
Workspaces
| Workspace | What it covers |
|---|---|
| Overview | Top-level KPIs (Net Worth, Income, Expense, Cashflow, Portfolio & XIRR, Total Indicative Tax, FI Coverage, Latest Run) with period/YoY comparisons and trend charts |
| Household | 4 tabs: Income, Expense, Budget & Cashflow, and a searchable Transactions ledger with Silver-field inspection and streaming CSV export |
| Wealth | Market vs Book Net Worth, monthly attribution (savings vs market vs FX), liquid vs illiquid split, asset-class breakdown, and click-to-drill asset detail |
| Investments | 5 tabs: Allocation, Performance & Benchmarks (XIRR, drawdown, FX vs asset P&L), Lot Explorer (open lots + 88-col lot detail), Realized & Reconciliation, and Market Evidence |
| Tax | 4 tabs: FY Overview & Exposure (liability waterfall, multi-FY trends, reference rates), Income Head Breakdown, Reconciliation & Audit, and Tax Events & Harvesting (with LTCG maturity & lot drill-down) |
| FIRE | FI corpus targets, Lean/Coast FI, emergency runway, savings velocity, Monte Carlo P10/P50/P90 trajectories, simulation provenance, and a separate what-if sandbox |
| Operations | 4 tabs: Runs & Sync Health, Sources & Artifacts (with streaming SQLite BLOB downloads), Providers & Failures, and Forensics & Evidence (Settings/Rules diffs + JSONL logs) |
| Explorer | Data Catalog across PFETL Gold/Silver/Control Plane surfaces, Guided Analytics, Saved Views, and a read-only SQL editor (SELECT / WITH ... SELECT only) |
| Reports | 15 built-in report templates + custom report builder with block reordering, historical run selection, and export to PDF, PPTX, XLSX, CSV, PNG, and SVG |
Install & Run
Requires Python 3.13+.
Grab it
# With uv (recommended for development)
uv sync
# Or install from PyPI
pip install pfetl-analytics-studio
Launch
# Default Windows tray mode (auto-picks port, opens browser, manages server lifecycle)
pfetl-studio
# Direct/headless server mode in the current terminal
pfetl-studio --cli
# Point directly to a PFETL profile
pfetl-studio --cli --settings path/to/Settings.toml --rules path/to/FinancialRules.toml
Useful CLI flags:
| Flag | Description |
|---|---|
--cli |
Run the NiceGUI server directly in the terminal instead of the system tray host |
--host |
Loopback host to bind (default 127.0.0.1; non-loopback hosts are rejected) |
--port |
Port to listen on (default 8080, or 0 with --auto-port) |
--auto-port |
Prefer 8080 and fall back to a free loopback port if busy |
--settings / --rules |
Paths to PFETL Settings.toml and FinancialRules.toml |
--no-browser |
Start without opening a browser tab |
--runtime-file |
Write atomic JSON runtime metadata (URL, PID, port) for launcher orchestration |
Additional entrypoints: pfetl-studio-server (headless server) and pfetl-studio-tray (GUI tray host). Health check is exposed at /healthz.
Project Layout & Stack
src/pfetl_analytics_studio/
├── analytics/ # Domain services, DTOs, and DuckDB/SQLite queries
├── data/ # Read-only DuckDB/Control Plane readers, catalog, streaming exports
├── semantic/ # Period resolution, filter specs, metric & dataset definitions
├── pages/ # NiceGUI page & tab views
├── reports/ # Report templates, builder runtime, PDF/PPTX/XLSX/CSV/image exporters
├── ui/ # Dark theme, KPI cards, tables, Plotly chart builders
├── app.py # NiceGUI app shell & routing
├── cli.py # CLI entrypoints
├── server.py # Loopback server lifecycle & /healthz
└── tray.py # System tray controller
| Layer | Libraries |
|---|---|
| UI & Charts | NiceGUI, Plotly, Kaleido |
| Data & Models | DuckDB, Polars, SQLite, Pydantic |
| Exports | ReportLab (PDF), python-pptx (PPTX), XlsxWriter (XLSX) |
| Packaging & Desktop | Hatchling, PyInstaller, pystray, Pillow, platformdirs |
| Quality | Ruff, Pyright, Mypy, Pylint, Pytest |
Dev & Vibe Checks
uv run pytest
uv run poe audit-fast
uv run poe audit-full
uv run pylint src tests
Author & License
Built by Shan (tksudharshan@gmail.com) — wanted a proper local cockpit for Personal Finance ETL (PyPI), so here we are.
Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE.
Metadata
Release files for pfetl-analytics-studio 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pfetl_analytics_studio-1.1.3.tar.gz | 1.7 MB | With provenance | Details for pfetl_analytics_studio-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pfetl_analytics_studio-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for pfetl_analytics_studio-1.1.3-py3-none-any.whl |
Total release size: 2.6 MB
Release files / pfetl_analytics_studio-1.1.3.tar.gz
| Download URL | pfetl_analytics_studio-1.1.3.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
def209f53fda24bd0a2df524b5231a4c2373eb1a55768c9c2ff905a6d8ac778b
|
|
BLAKE2b-256 checksum How to use checksums |
ee4a115d7994232a4e836246d623a099220f689ccbc242a3b8f4f77aa29e56dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / pfetl_analytics_studio-1.1.3-py3-none-any.whl
| Download URL | pfetl_analytics_studio-1.1.3-py3-none-any.whl |
|---|---|
| Size | 856.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
713a8385778ad82e66b28824fb1ad3969b6babb21c487a97b82bc958bc0c1f00
|
|
BLAKE2b-256 checksum How to use checksums |
9cc64e275429691ce85a754d1d03913ae634dd5f32646591384b456585621b88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for pfetl-analytics-studio 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pfetl_analytics_studio-1.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.