reports.status_rows(spec)
All units with pace, risk, intent count, evaluation coverage and consumer count.
Returns
|
list[UnitStatus] |
list[UnitStatus]: One row per unit, ordered from slow to fast pace, then by name. |
Examples
from pathlib import Path
from tempfile import TemporaryDirectory
from spotregen import load_spec, make_sample_repo, status_rows
with TemporaryDirectory() as tmp:
for row in status_rows(load_spec(make_sample_repo(Path(tmp) / "demo"))):
print(row)
UnitStatus(name='samplepkg.core.calc', pace='fast', risk='low', intent=1, evaluated=1, decisions=1, consumers=2)