Skip to content

tdfs4ds.store_reports

tdfs4ds.store_reports

The admin app's reports, from a script (0.3.6.13).

write_store_report (the Report page), write_efs_map (EFS map) and write_documentation_coverage (Documentation > Coverage) run the same collect / build / render layers as the app and write one standalone HTML file. The app's download routes call these functions, so the page and the script share one path. Nothing here needs the web server: the page code snippets shown behind the (?) icon call them.

They read the store the session is connected to (tdfs4ds.connect) and write nothing to it.

_require_store

_require_store()

_safe

_safe(name) -> str

_default_path

_default_path(kind: str, ext: str = 'html') -> str

_page

_page(title: str, body: str) -> str

write_store_report

write_store_report(path=None, window_days: int = 90, as_of=None) -> str

The Report page as a standalone HTML file; returns its path.

window_days bounds the run-history timeline and calendar; as_of reads the catalogs at that valid time (None = current). The storage section is the one the app caches after a "Build storage counts"; from a script it shows the note asking for that build.

write_efs_map

write_efs_map(path=None, exact: bool = False, as_of=None) -> str

The EFS map (every store object, metadata and data plane) as a standalone HTML file.

exact=True counts rows with COUNT(*) instead of reading the statistics.

build_documentation_model

build_documentation_model() -> dict

Collect the documentation inventory and build the coverage model (used by the app too).

write_documentation_coverage

write_documentation_coverage(path=None) -> str

Documentation > Coverage (documented / missing per kind, index status) as an HTML file.