reports.status_table

reports.status_table(spec)

All units with pace, risk, intent count, evaluation coverage and consumer count.

Parameters

Name Type Description Default
spec RegenSpec The loaded spec. required

Returns

Name Type Description
str str A Markdown table, units ordered from slow to fast pace.

Examples

from pathlib import Path
from tempfile import TemporaryDirectory

from spotregen import load_spec, make_sample_repo, status_table

with TemporaryDirectory() as tmp:
    print(status_table(load_spec(make_sample_repo(Path(tmp) / "demo"))))
| unit | pace | risk | intent | evaluated | decisions | consumers |
|---|---|---|---|---|---|---|
| samplepkg.core.calc | fast | low | 1 | 1/1 | 1 | 2 |