Local-first observability, evaluation, and UI for production forecasts.
Project description
ForecastOps
ForecastOps is a local-first observability and evaluation layer for production forecasts. It works with the forecasting code you already have.
Add one line after .predict(), then run fops ui.
import forecastops as fops
forecast = model.predict(future)
run = fops.capture(
forecast,
project="site-traffic",
series_id="homepage",
cutoff=train_df["ds"].max(),
actuals=actuals_df,
)
fops ui
ForecastOps stores forecast artifacts locally as Parquet, writes run metadata to DuckDB, computes horizon-aware metrics, generates static HTML reports, and serves a read-only local UI. It does not train forecasting models, require a cloud account, or upload raw forecast data.
Install
From PyPI:
pip install forecastops
From source:
git clone https://github.com/Parisi-Labs/forecastops.git
cd forecastops
pip install -e .
Quickstart
python -m venv .venv
source .venv/bin/activate
pip install -e .
python examples/generic_dataframe.py
fops report --latest
fops ui
Open http://127.0.0.1:4784 after starting the UI.
Local UI
fops ui serves a read-only explorer for the local store:
- Runs — every captured run with horizon, points, MAE, WAPE, bias, coverage, skill, and validation status; filterable and sortable.
- Run detail — headline metrics, a forecast inspector with one chart per series, and a diagnostics cockpit: residual distribution, error by horizon, per-series worst offenders, and per-regime breakdowns — plus metrics, validation, residuals, artifacts, and the capture trace timeline.
- Projects — runs grouped by project with error trends across captures.
- Groups — experiment and backtest groups with run counts and mean error; open a group to see per-metric mean ± std and stability across its runs.
- Compare — metric deltas and regressions between any two runs, backed
by
fops diff.
Core Concepts
capture: normalize forecasts from existing workflows.ForecastSchema: map arbitrary dataframe columns to canonical semantics.validate: catch schema, timestamp, duplicate, interval, and leakage issues.evaluate: compute MAE, RMSE, WAPE, sMAPE, bias, coverage, interval width, pinball loss (for quantile forecasts), and count — sliced by horizon and by any categorical columns you keep (e.g. region, holiday_flag, event_type).compare: calculate benchmark metrics and skill.backtest: evaluate a rolling-origin forecast panel as one grouped run set, with per-cutoff and aggregate (mean/std) metrics.diff: compare two captured runs.diagnose: a machine-readable diagnosis of a run — overall metrics, skill, worst horizons/series/regimes, validation, and artifact URIs — for agents and scripts (fops diagnose <run_id>).- groups: tag related runs with
capture(group=...)(or abacktest) and browse them together in the UI. - local store:
.forecastops/forecastops.duckdbplus Parquet artifacts. - UI: local read-only browser explorer for runs, metrics, residuals, validation, artifacts, and run differences.
Privacy Defaults
ForecastOps is local-first by default:
- binds the UI to
127.0.0.1and refuses other hosts unless you pass--allow-remote - makes no outbound network calls
- stores raw forecast points in the configured local store
- emits OpenTelemetry only when explicitly enabled
- avoids raw forecast points in telemetry
Development
pip install -e ".[dev]"
pytest
ruff check .
mypy forecastops
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forecastops-0.2.1.tar.gz.
File metadata
- Download URL: forecastops-0.2.1.tar.gz
- Upload date:
- Size: 85.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299187154dd98a23559746988f1df09d3171032788eedffa9195c3549914fe55
|
|
| MD5 |
f24839b4d7e50d28d3bfe869752ea176
|
|
| BLAKE2b-256 |
111a2c6f005ad3caecd5a1be6817600862e4e3cb2b62095d11538d4522cf0327
|
Provenance
The following attestation bundles were made for forecastops-0.2.1.tar.gz:
Publisher:
release.yml on Parisi-Labs/forecastops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forecastops-0.2.1.tar.gz -
Subject digest:
299187154dd98a23559746988f1df09d3171032788eedffa9195c3549914fe55 - Sigstore transparency entry: 1806748328
- Sigstore integration time:
-
Permalink:
Parisi-Labs/forecastops@0508f4ef49cd1d353f357c84666c4ff405095004 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/Parisi-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0508f4ef49cd1d353f357c84666c4ff405095004 -
Trigger Event:
push
-
Statement type:
File details
Details for the file forecastops-0.2.1-py3-none-any.whl.
File metadata
- Download URL: forecastops-0.2.1-py3-none-any.whl
- Upload date:
- Size: 79.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd096d97e758ddfcb025e643d66264c61842f6e6023d9c47ffb1d6787f8e0e1d
|
|
| MD5 |
a3de6cc5ecde7b8bdb4d976c319392a8
|
|
| BLAKE2b-256 |
976f976c03d5e7fb1ff7ca15d7456bd7b2bcb0425a82234284ea688973b6e2e2
|
Provenance
The following attestation bundles were made for forecastops-0.2.1-py3-none-any.whl:
Publisher:
release.yml on Parisi-Labs/forecastops
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forecastops-0.2.1-py3-none-any.whl -
Subject digest:
bd096d97e758ddfcb025e643d66264c61842f6e6023d9c47ffb1d6787f8e0e1d - Sigstore transparency entry: 1806748347
- Sigstore integration time:
-
Permalink:
Parisi-Labs/forecastops@0508f4ef49cd1d353f357c84666c4ff405095004 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/Parisi-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0508f4ef49cd1d353f357c84666c4ff405095004 -
Trigger Event:
push
-
Statement type: