whyflow 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
whyflow/workflow.py ADDED
@@ -0,0 +1,240 @@
1
+ """A workflow where every step carries its code and the reason it exists."""
2
+
3
+ import html
4
+ import inspect
5
+ import warnings
6
+ from collections.abc import Callable
7
+ from dataclasses import dataclass, field
8
+ from pathlib import Path
9
+ from typing import Any
10
+
11
+ from whyflow.adjustment import check_adjustment
12
+ from whyflow.checks import check_recovery
13
+ from whyflow.report import render
14
+ from whyflow.sensitivity import DEFAULT_STRENGTHS, check_sensitivity
15
+
16
+ KINDS = ("generative_model", "estimand", "estimator", "test", "sensitivity", "data", "analysis")
17
+
18
+ RECOVERY_WHY = (
19
+ "Before touching real data: simulate data from the generative model many times, where the true answer is "
20
+ "known, and check that the estimator finds it, and that its ranges catch it as often as they promise."
21
+ )
22
+
23
+ SENSITIVITY_WHY = (
24
+ "The diagram can only include the confounders we thought of. This asks how strong a confounder nobody "
25
+ "measured would have to be before the estimator stops finding the truth."
26
+ )
27
+
28
+ ADJUSTMENT_WHY = (
29
+ "Before running anything: use the causal diagram to check that the estimator adjusts for the right "
30
+ "variables. Adjusting for a mediator or a collider, or missing a confounder, biases the answer no matter "
31
+ "how much data you have."
32
+ )
33
+
34
+
35
+ @dataclass
36
+ class Step:
37
+ name: str
38
+ kind: str
39
+ why: str
40
+ func: Callable
41
+ needs: list[str] = field(default_factory=list)
42
+ result: Any = None
43
+ done: bool = False
44
+ source: str | None = None # code to show instead of func's own (for built-in steps)
45
+ warnings: list[str] = field(default_factory=list)
46
+ adjusts_for: list[str] | None = None # for estimators: the variables they adjust for (control for)
47
+
48
+ @property
49
+ def code(self) -> str:
50
+ """The step's source code, so the report shows exactly what ran."""
51
+ if self.source:
52
+ return self.source
53
+ try:
54
+ return inspect.getsource(self.func)
55
+ except (OSError, TypeError): # typed into a Python prompt: there is no file to read the code from
56
+ return "# The code of this step isn't available: it was defined interactively, not in a file."
57
+
58
+ @property
59
+ def passed(self) -> bool:
60
+ """True if this is a test step that ran and passed."""
61
+ return self.kind == "test" and self.done and isinstance(self.result, dict) and bool(self.result.get("passed"))
62
+
63
+
64
+ class Workflow:
65
+ def __init__(self, title: str):
66
+ self.title = title
67
+ self.steps: dict[str, Step] = {}
68
+
69
+ def step(self, kind: str, why: str, needs: list[str] | None = None, adjusts_for: list[str] | None = None):
70
+ """Register a function as a workflow step. Every step must say why it exists.
71
+
72
+ A step gets the results of earlier steps through its parameters: name a parameter after a step
73
+ (def estimand(generative_model): ...) and it receives that step's result. Or list them in needs=[...]
74
+ and name the parameters whatever you like.
75
+
76
+ Estimators can say which variables they adjust for (adjusts_for=["age"], or [] for none), so
77
+ add_adjustment_check() can check that choice against the causal diagram.
78
+ """
79
+ if kind not in KINDS:
80
+ raise ValueError(f"kind must be one of {KINDS}, not '{kind}'")
81
+ if not why.strip():
82
+ raise ValueError("Every step needs a 'why': the reason it's part of the analysis.")
83
+
84
+ def register(func: Callable) -> Callable:
85
+ used = list(needs) if needs is not None else self._needs_from_parameters(func)
86
+ for need in used:
87
+ if need not in self.steps:
88
+ raise ValueError(f"'{func.__name__}' needs '{need}', which isn't defined above it.")
89
+ declared = list(adjusts_for) if adjusts_for is not None else None
90
+ self.steps[func.__name__] = Step(func.__name__, kind, why, func, used, adjusts_for=declared)
91
+ return func
92
+
93
+ return register
94
+
95
+ def _needs_from_parameters(self, func: Callable) -> list[str]:
96
+ """The steps a function uses, read from its parameter names (parameters with defaults are left alone)."""
97
+ found = []
98
+ for parameter in inspect.signature(func).parameters.values():
99
+ if parameter.default is not inspect.Parameter.empty:
100
+ continue
101
+ if parameter.name not in self.steps:
102
+ known = ", ".join(self.steps) or "none yet"
103
+ raise ValueError(
104
+ f"'{func.__name__}' has a parameter '{parameter.name}', but no step above has that name "
105
+ f"(steps so far: {known}). Name the parameter after a step, or list the steps in needs=[...]."
106
+ )
107
+ found.append(parameter.name)
108
+ return found
109
+
110
+ def add_recovery_test(
111
+ self,
112
+ name: str = "recovery_test",
113
+ model: str = "generative_model",
114
+ estimand: str = "estimand",
115
+ estimator: str = "estimator",
116
+ n: int = 1000,
117
+ seed: int = 0,
118
+ repeats: int = 100,
119
+ expected_coverage: float | None = None,
120
+ why: str = RECOVERY_WHY,
121
+ ) -> Step:
122
+ """Add a ready-made test step: simulate from the model many times and check the estimator finds the truth.
123
+
124
+ With the default 100 repeats, it checks that the estimator's ranges catch the true value about as often
125
+ as they promise. repeats=1 is the quick version: one simulation, one yes/no.
126
+ """
127
+ for step_name, kind in ((model, "generative_model"), (estimand, "estimand"), (estimator, "estimator")):
128
+ if step_name in self.steps and self.steps[step_name].kind != kind:
129
+ raise ValueError(f"'{step_name}' is a {self.steps[step_name].kind} step, not a {kind} step.")
130
+
131
+ def recovery(dag, target, fit):
132
+ return check_recovery(
133
+ dag, target, fit, n=n, seed=seed, repeats=repeats, expected_coverage=expected_coverage
134
+ )
135
+
136
+ recovery.__name__ = name
137
+ self.step(kind="test", why=why, needs=[model, estimand, estimator])(recovery)
138
+ self.steps[name].source = inspect.getsource(check_recovery)
139
+ return self.steps[name]
140
+
141
+ def add_adjustment_check(
142
+ self,
143
+ name: str = "adjustment_check",
144
+ model: str = "generative_model",
145
+ estimand: str = "estimand",
146
+ estimator: str = "estimator",
147
+ why: str = ADJUSTMENT_WHY,
148
+ ) -> Step:
149
+ """Add a ready-made test step: are the estimator's adjustment variables right, according to the diagram?"""
150
+ for step_name, kind in ((model, "generative_model"), (estimand, "estimand"), (estimator, "estimator")):
151
+ if step_name not in self.steps:
152
+ raise ValueError(f"Define the '{step_name}' step before adding the adjustment check.")
153
+ if self.steps[step_name].kind != kind:
154
+ raise ValueError(f"'{step_name}' is a {self.steps[step_name].kind} step, not a {kind} step.")
155
+ adjusts_for = self.steps[estimator].adjusts_for
156
+ if adjusts_for is None:
157
+ raise ValueError(
158
+ f"Tell whyflow what '{estimator}' adjusts for: @wf.step(kind=\"estimator\", ..., "
159
+ "adjusts_for=[\"height\"]). Use adjusts_for=[] if it adjusts for nothing."
160
+ )
161
+
162
+ def adjustment(dag, target, fit):
163
+ return check_adjustment(dag, target["cause"], target["outcome"], adjusts_for)
164
+
165
+ adjustment.__name__ = name
166
+ self.step(kind="test", why=why, needs=[model, estimand, estimator])(adjustment)
167
+ self.steps[name].source = (
168
+ f"# The estimator says it adjusts for: {adjusts_for}\n"
169
+ "# whyflow checks that against the causal diagram from the generative model:\n"
170
+ "check_adjustment(dag, target[\"cause\"], target[\"outcome\"], adjusts_for)\n"
171
+ )
172
+ return self.steps[name]
173
+
174
+ def add_sensitivity_check(
175
+ self,
176
+ name: str = "sensitivity_check",
177
+ model: str = "generative_model",
178
+ estimand: str = "estimand",
179
+ estimator: str = "estimator",
180
+ strengths: tuple[float, ...] = DEFAULT_STRENGTHS,
181
+ n: int = 1000,
182
+ repeats: int = 30,
183
+ seed: int = 0,
184
+ why: str = SENSITIVITY_WHY,
185
+ ) -> Step:
186
+ """Add a ready-made sensitivity step: rerun the estimator with a hidden confounder of growing strength."""
187
+ for step_name, kind in ((model, "generative_model"), (estimand, "estimand"), (estimator, "estimator")):
188
+ if step_name not in self.steps:
189
+ raise ValueError(f"Define the '{step_name}' step before adding the sensitivity check.")
190
+ if self.steps[step_name].kind != kind:
191
+ raise ValueError(f"'{step_name}' is a {self.steps[step_name].kind} step, not a {kind} step.")
192
+
193
+ def sensitivity(dag, target, fit):
194
+ return check_sensitivity(dag, target, fit, strengths=strengths, n=n, repeats=repeats, seed=seed)
195
+
196
+ sensitivity.__name__ = name
197
+ self.step(kind="sensitivity", why=why, needs=[model, estimand, estimator])(sensitivity)
198
+ self.steps[name].source = inspect.getsource(check_sensitivity)
199
+ return self.steps[name]
200
+
201
+ def _untested_estimators(self, step: Step) -> list[str]:
202
+ """The estimators this step uses that haven't passed a test on simulated data."""
203
+ estimators = [need for need in step.needs if self.steps[need].kind == "estimator"]
204
+ return [
205
+ estimator
206
+ for estimator in estimators
207
+ if not any(other.passed and estimator in other.needs for other in self.steps.values())
208
+ ]
209
+
210
+ def run(self) -> dict[str, Any]:
211
+ """Run every step in order, passing each one the results of the steps it needs."""
212
+ for step in self.steps.values(): # defined needs-first, so already in order
213
+ step.warnings = []
214
+ if step.kind == "analysis":
215
+ for estimator in self._untested_estimators(step):
216
+ message = (
217
+ f"'{step.name}' uses the estimator '{estimator}', which hasn't passed a test "
218
+ "on simulated data. Test before you invest."
219
+ )
220
+ step.warnings.append(message)
221
+ warnings.warn(message, stacklevel=2)
222
+ inputs = [self.steps[need].result for need in step.needs]
223
+ step.result = step.func(*inputs)
224
+ step.done = True
225
+ print(f"done {step.kind:17} {step.name}")
226
+ return {name: step.result for name, step in self.steps.items()}
227
+
228
+ def _repr_html_(self) -> str:
229
+ """Show the report inside a Jupyter notebook: just put `wf` at the end of a cell."""
230
+ page = html.escape(render(self), quote=True)
231
+ return (
232
+ f'<iframe srcdoc="{page}" style="width:100%;height:900px;border:1px solid #e5e7eb;'
233
+ 'border-radius:8px" sandbox="allow-scripts allow-same-origin"></iframe>'
234
+ )
235
+
236
+ def report(self, path: str = "report.html") -> str:
237
+ """Write the workflow as one HTML page: diagram, reasons, code and results."""
238
+ Path(path).write_text(render(self), encoding="utf-8")
239
+ print(f"Report written to {path}")
240
+ return path
@@ -0,0 +1,229 @@
1
+ Metadata-Version: 2.5
2
+ Name: whyflow
3
+ Version: 0.2.0
4
+ Summary: Statistical workflows that carry their reasons, their code and their tests.
5
+ Project-URL: Homepage, https://koopticon.github.io/whyflow/
6
+ Project-URL: Repository, https://github.com/koopticon/whyflow
7
+ Project-URL: Issues, https://github.com/koopticon/whyflow/issues
8
+ Project-URL: Changelog, https://github.com/koopticon/whyflow/blob/main/CHANGELOG.md
9
+ Author: Jawad Konialee
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: bayesian,causal-inference,dag,simulation,statistical-rethinking,statistics,workflow
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: numpy
22
+ Requires-Dist: pandas
23
+ Provides-Extra: bayes
24
+ Requires-Dist: pymc; extra == 'bayes'
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest; extra == 'dev'
27
+ Requires-Dist: ruff; extra == 'dev'
28
+ Requires-Dist: statsmodels; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ <p align="center">
32
+ <a href="https://koopticon.github.io/whyflow/">
33
+ <picture>
34
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/logo-dark.svg">
35
+ <img alt="whyflow" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/logo.svg" height="72">
36
+ </picture>
37
+ </a>
38
+ </p>
39
+
40
+ <p align="center"><em>Statistical workflows that carry their reasons, their code and their tests.</em></p>
41
+
42
+ <p align="center">
43
+ <a href="https://github.com/koopticon/whyflow/actions/workflows/tests.yml"><img alt="tests" src="https://github.com/koopticon/whyflow/actions/workflows/tests.yml/badge.svg"></a>
44
+ <a href="https://pypi.org/project/whyflow/"><img alt="PyPI" src="https://img.shields.io/pypi/v/whyflow?color=0d9488"></a>
45
+ <a href="https://pypi.org/project/whyflow/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/whyflow"></a>
46
+ <a href="https://github.com/koopticon/whyflow/blob/main/LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-blue"></a>
47
+ </p>
48
+
49
+ <p align="center">
50
+ <a href="https://koopticon.github.io/whyflow/"><strong>Live demo</strong></a> ·
51
+ <a href="https://koopticon.github.io/whyflow/playground.html"><strong>Try it in your browser</strong></a> ·
52
+ <a href="#quickstart">Quickstart</a> ·
53
+ <a href="#what-it-checks">What it checks</a> ·
54
+ <a href="#how-it-compares">How it compares</a> ·
55
+ <a href="#examples">Examples</a> ·
56
+ <a href="#cite">Cite</a>
57
+ </p>
58
+
59
+ <p align="center">
60
+ <img alt="Clicking through a whyflow report: the workflow diagram, a recovery test's charts, and the sensitivity slider" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/hero.gif" width="820">
61
+ </p>
62
+
63
+ whyflow turns the statistical workflow Richard McElreath teaches in *Statistical Rethinking* into code you can
64
+ run and a report you can share. You write down how you think the data came about, what you want to know, and
65
+ how you'll estimate it, and every step has to say **why** it's there. Before you touch real data, whyflow
66
+ checks the estimator three ways, and the whole analysis becomes one page where each box in the diagram opens
67
+ the code behind it.
68
+
69
+ In his 2026 lectures McElreath said he knew of no tool that attaches each step's code to the workflow diagram,
70
+ and asked if anyone would build one. This is one answer.
71
+
72
+ <p align="center">
73
+ <img alt="The workflow: generative model, estimand, estimator, test before you invest (diagram check, recovery test, sensitivity), then real data" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/workflow.png" width="900">
74
+ </p>
75
+
76
+ **No install needed to try it:** the [playground](https://koopticon.github.io/whyflow/playground.html) runs
77
+ whyflow in your browser. Edit the estimator, press Run, and the report updates.
78
+
79
+ ## Install
80
+
81
+ ```bash
82
+ pip install whyflow
83
+ ```
84
+
85
+ Python 3.11+. The examples also use `statsmodels`; the Bayesian one uses PyMC (`pip install "whyflow[bayes]"`).
86
+
87
+ ## Quickstart
88
+
89
+ ```python
90
+ import statsmodels.formula.api as smf
91
+
92
+ from whyflow import DAG, Workflow
93
+
94
+ wf = Workflow("Total effect of age on weight")
95
+
96
+
97
+ @wf.step(kind="generative_model", why="Age makes children taller; age and height both make them heavier.")
98
+ def generative_model():
99
+ return DAG().add("age").add("height", causes={"age": 2.0}).add("weight", causes={"age": 0.5, "height": 0.4})
100
+
101
+
102
+ # A parameter named after a step receives that step's result.
103
+ @wf.step(kind="estimand", why="The TOTAL effect of age, including the part that works through height.")
104
+ def estimand(generative_model):
105
+ return {"cause": "age", "outcome": "weight", "true_value": generative_model.total_effect("age", "weight")}
106
+
107
+
108
+ @wf.step(kind="estimator", adjusts_for=[], why="Weight on age only: height is a mediator, so leave it out.")
109
+ def estimator():
110
+ def fit(data):
111
+ model = smf.ols("weight ~ age", data=data).fit()
112
+ low, high = model.conf_int().loc["age"]
113
+ return {"estimate": model.params["age"], "low": low, "high": high}
114
+
115
+ return fit
116
+
117
+
118
+ wf.add_adjustment_check() # does the causal diagram agree with what the estimator adjusts for?
119
+ wf.add_recovery_test() # 100 simulated datasets: does it find the true effect, 1.3?
120
+ wf.add_sensitivity_check() # how strong would an unmeasured confounder have to be to break it?
121
+
122
+ wf.run()
123
+ wf.report("report.html") # or, in a Jupyter notebook, end a cell with: wf
124
+ ```
125
+
126
+ Now change the estimator to `weight ~ age + height` with `adjusts_for=["height"]` and run it again. The
127
+ diagram check flags height as a mediator before any data exists, and the recovery test shows the cost: an
128
+ estimate of 0.5 instead of 1.3.
129
+
130
+ ## What it checks
131
+
132
+ ### Good and bad controls, from the diagram alone
133
+
134
+ Declare what the estimator adjusts for, and whyflow reads the causal diagram: mediators, colliders, things
135
+ caused by the outcome, back doors left open. It suggests the smallest sets that work, and says plainly when an
136
+ unmeasured variable means none does. The paths that carry the effect you want are green; bias leaking in moves
137
+ along its path in red.
138
+
139
+ <p align="center"><img alt="The haunted DAG: adjusting for G leaves the path through the unmeasured U open, drawn as moving red arrows" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/controls.gif" width="720"></p>
140
+
141
+ ### Recovery on simulated data
142
+
143
+ 100 datasets where the truth is known. Does the estimator find it, and do its ranges catch it as often as they
144
+ promise? The pass mark allows for the luck of 100 tries, so a good estimator doesn't fail by chance.
145
+
146
+ <p align="center"><img alt="Recovery test: where the 100 estimates landed, and every simulation's range in green or red" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/recovery.png" width="720"></p>
147
+
148
+ ### Sensitivity: what would break it?
149
+
150
+ The diagram only holds the confounders you thought of. This step adds one you didn't, at growing strengths,
151
+ and finds the tipping point where the estimator stops finding the truth. Drag the slider in the report to see
152
+ each strength.
153
+
154
+ <p align="center"><img alt="Sensitivity analysis: the estimate drifting away from the truth as a hidden confounder gets stronger, with the tipping point marked" src="https://raw.githubusercontent.com/koopticon/whyflow/main/docs/sensitivity.png" width="720"></p>
155
+
156
+ And one rule ties it together: an `analysis` step whose estimator hasn't passed a test gets a warning, and a
157
+ ⚠️ in the report. Test before you invest.
158
+
159
+ ## How it compares
160
+
161
+ whyflow doesn't replace these tools; it sits between them. Draw your diagram in dagitty, borrow estimators
162
+ from DoWhy, run big pipelines in targets or Hamilton. whyflow is for keeping one analysis's reasoning, code
163
+ and tests together.
164
+
165
+ | | whyflow | [dagitty](https://www.dagitty.net) | [DoWhy](https://github.com/py-why/dowhy) | [estiplan](https://github.com/rsmeyerlorey/estiplan) | [targets](https://github.com/ropensci/targets) / [Hamilton](https://github.com/apache/hamilton) |
166
+ |---|:---:|:---:|:---:|:---:|:---:|
167
+ | Analysis drawn as a diagram of steps | ✅ | | | ✅ | ✅ |
168
+ | Each step's code attached to the diagram | ✅ | | | | partly |
169
+ | Every step must say why | ✅ | | | | |
170
+ | Adjustment sets from a causal DAG | ✅ | ✅ | ✅ | ✅ | |
171
+ | Estimator tested on simulated data with a known truth | ✅ | | partly | | |
172
+ | Sensitivity to an unmeasured confounder | ✅ | | ✅ | | |
173
+ | Built-in estimation methods | bring your own | | ✅ | brms code | |
174
+ | Caching, big pipelines | | | | | ✅ |
175
+ | Language | Python | web, R | Python | web app | R / Python |
176
+
177
+ ## More
178
+
179
+ - **Bayesian estimators.** Fit with PyMC (or anything), then `summarize_samples(posterior)` gives the mean and
180
+ an 89% interval; the recovery test then expects 89% coverage.
181
+ - **Unmeasured variables.** `DAG().add("U", observed=False)` shapes the simulated data but is left out of it,
182
+ like in real life.
183
+ - **Jupyter.** End a cell with `wf` and the report appears inline.
184
+ - **Steps without boilerplate.** Name a parameter after a step to receive its result, or list them with
185
+ `needs=[...]` and name the parameters as you like.
186
+
187
+ ## Examples
188
+
189
+ Every example also runs on the [live demo](https://koopticon.github.io/whyflow/), rebuilt on each change.
190
+
191
+ | Example | What it shows |
192
+ |---|---|
193
+ | [`example.py`](example.py) | The quickstart: all three checks pass; a hidden confounder of 0.3 would break it. |
194
+ | [`examples/mediator_mistake.py`](examples/mediator_mistake.py) | The most common mistake, "controlling for" a mediator. Both tests fail: 0.5 instead of 1.3. |
195
+ | [`examples/haunted_dag.py`](examples/haunted_dag.py) | McElreath's haunted DAG: an unmeasured confounder no adjustment can fix. |
196
+ | [`examples/howell_children.py`](examples/howell_children.py) | Real data, the !Kung San census from the book: about **1.34 kg per year** of age. |
197
+ | [`examples/howell_children_pymc.py`](examples/howell_children_pymc.py) | The same analysis with a Bayesian model in PyMC. |
198
+
199
+ The Howell data is downloaded from the [rethinking](https://github.com/rmcelreath/rethinking) repository when
200
+ an example runs; it isn't included here. `python demo/build.py` builds the demo site into `_site/`.
201
+
202
+ ## Current limits
203
+
204
+ - Simulation covers continuous variables with straight-line relationships, and the target is a **total**
205
+ effect of one variable on another.
206
+ - The diagram check trusts what `adjusts_for` says; it can't read your model formula. The recovery test is what
207
+ catches an estimator that does something different from what it declares.
208
+ - The diagram check lists every path between cause and outcome: fine for a few dozen variables, slow for very
209
+ large diagrams.
210
+ - Every run re-runs every step (no caching yet).
211
+
212
+ ## Cite
213
+
214
+ If whyflow helps your work, please cite it. GitHub's **Cite this repository** button (from
215
+ [`CITATION.cff`](CITATION.cff)) gives APA and BibTeX.
216
+
217
+ ## Contributing and feedback
218
+
219
+ whyflow is young. If you try it, especially while working through Statistical Rethinking in Python, tell me
220
+ what worked and what didn't in an [issue](https://github.com/koopticon/whyflow/issues). To work on the code,
221
+ see [CONTRIBUTING.md](CONTRIBUTING.md). Changes are listed in the [changelog](CHANGELOG.md).
222
+
223
+ Inspired by Richard McElreath's *Statistical Rethinking* and its *estiplans*, and by
224
+ [YesWorkflow](https://github.com/yesworkflow-org/yw-prototypes), which draws workflow diagrams from comments in
225
+ scripts.
226
+
227
+ ## License
228
+
229
+ [MIT](LICENSE)
@@ -0,0 +1,13 @@
1
+ whyflow/__init__.py,sha256=RoJnbCiF1r1TeHYk-cCey_Rq1FJxZMpcOGiOrD0sQ0A,605
2
+ whyflow/adjustment.py,sha256=3d7hcwroWmsFhEiQV2kYqMTPf8pB1Z6YeHChuHwVxZE,9702
3
+ whyflow/bayes.py,sha256=7mC-uV2-AYd8-bw2B4I41MUBRRMSrd8wQCikcSnsnOo,1289
4
+ whyflow/charts.py,sha256=YT-CPdELkGu5LByWaogBFhH0cbBnWafz8TwivG54whY,7832
5
+ whyflow/checks.py,sha256=23dIAl8ShbpCIXwTzlB4aRvDO6PR0v1hgSGbpF8TTWc,3588
6
+ whyflow/dag.py,sha256=2Yzfw9WDQlNXrbmHgB4JWJSHlGyfjySVNQqfkI_LvgY,4825
7
+ whyflow/report.py,sha256=lKC2zH3IhAX2kRubAimZJWYze5de1hUNvTWF4z7G0TQ,20203
8
+ whyflow/sensitivity.py,sha256=KLwRakI3d0CoMBKZPkV7c_DgOrIUBXhfp9gpHDAusHY,2720
9
+ whyflow/workflow.py,sha256=DJ7-ggQn6p8WzHuSIiaECNGjRclUfD6Yf_qowas2BAU,11178
10
+ whyflow-0.2.0.dist-info/METADATA,sha256=g8SmwPfAyIQH-7y440hLVTMZKCZAFL83CRV9Khxhvsc,11643
11
+ whyflow-0.2.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
12
+ whyflow-0.2.0.dist-info/licenses/LICENSE,sha256=Y4zoJ7s8o_6sUw6COC_sYu7uk_Xu-zlv-zer79XAJME,1071
13
+ whyflow-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jawad Konialee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.