Changelog
This changelog is generated automatically from GitHub Releases.
dazflow 0.1.0
2026-11-26 · GitHub
The first release. dazflow runs the workflow around a time-series model in eight steps, each returning its numbers with tables, figures and findings ready for a model document. It needs Python 3.12 or later.
Steps
dz.ingestreads csv, Excel and Parquet files or pandas, polars and pyarrow frames, puts every series on one monthly, quarterly or annual calendar, applies publication lags and checks the history is long enough.dz.cleanruns seven data-quality checks on pointblank (completeness,gaps,duplicates,range,revisions,outliers,representativeness), applies the configured treatments, each with a reason, and logs every changed value.dz.exploreprofiles every series, reads ADF, DFGLS, Phillips-Perron and KPSS together into an order of integration, transforms each series, searches each driver’s lag and screens it by a HAC regression against its expected sign.dz.buildchecks driver correlation and variance inflation, searches driver combinations (exhaustive or stepwise) and fits the configured forms simplest first, always with the benchmarks. A form listed twice informsand a negative driver lag are refused when the configuration is read.dz.selectscores the candidates by rolling-origin evaluation, computes a model confidence set, checks scenario projections for ordering and bounds, and proposes a default that the modeller confirms or overrides in configuration, with a reason. Scenarios of different lengths are forecast over the periods all of them cover, as forecast does; a choice whose rolling-origin evaluation failed is refused with its reason. Candidates with identical losses at every origin share one place in the confidence set, with the same inclusion and p-value, instead of stopping the step with arch’sRuntimeError.dz.forecastforecasts the chosen model under every scenario with intervals, anchors the origin, optionally reverts to a long-run level, and transforms back to the target’s scale with a suitable bias correction.dz.diagnosetests the chosen model: residual tests, CUSUM and recursive CUSUM, rolling coefficients, Chow tests, a back-test of interval coverage, one-driver sensitivity and anomalies.dz.reportbuilds the run’s Word document and a plain-Python replay script from the run record alone.
Workflow
- Gates: every step ends in checks against configured thresholds. A failed check stops the run unless an override with a reason accepts it.
- The
dazflowcommand: init (a project folder with every setting written out at its default and example data that runs), validate, one command per step,run --from/--to,show <artefact-id>, replay,pluginsand--version. Exit 0 on success, 1 on an error, 2 on a failed gate or a replay that differs. run andshowprint findings with the numbers in the project’s style, as the reports write them (Finding.text and the record keep the numbers as computed), anddz.render.finding_texttakes the house style when no style is given. - The run record,
reports/record.json: configuration with every default, results, checks, overrides, environment and the fingerprint of every input.dazflow replayreruns it and names every difference. - Artefacts with stable identifiers (
T3.3,F3.1,S3.1) render in one house style to Word, HTML, Markdown, PNG and SVG; an organisation can override the style from a YAML file.
Components
- Model forms behind one interface:
naive,seasonal_naive,mean,ols,glm(fractional logit),arimaxandets. Fitted models are stored as specification, parameters, covariance and data fingerprint, never pickled, and refitted from the record. - Transforms (
diff,seasonal_diff, log,logdiff,growth,logit,boxcox) with their inverses, recorded as text in the series metadata. - Rolling-origin evaluation (
expandingandrollingsplitters;mae,rmse,mase,coverage). - Plugins: model forms, checks, transforms, readers, renderers and steps register under a key, by decorator or through the
dazflow.pluginsentry point.dazflow.testingholds the contracts a plugin passes.
Installation
pip install dazflow, Python 3.12 or later. The one extra,io, adds openpyxl, pyarrow and polars for the Excel and Parquet readers and polars or pyarrow input; the other extras return with the features that use them.- The package is typed: the wheel carries
py.typed(PEP 561).
Documentation
- https://pedrobtz.github.io/py-dazflow/: Get started on the example project, the command line, writing a plugin, and a reference of every public name.
Install: pip install dazflow. On PyPI: https://pypi.org/project/dazflow/0.1.0/ · Documentation: https://pedrobtz.github.io/py-dazflow/