upxo.reporting.render_html module

Render a ReportSession to a single self-contained HTML file.

No template engine (jinja2 is not a UPXO dependency) – plain string building plus stdlib html.escape() is all this module’s flat entry list needs. Images are referenced by the relative path already recorded on each ImageEntry (assets/…), so the output HTML must stay alongside the assets/ folder – both live in session.reports_dir by default.

upxo.reporting.render_html.render_html(session, out_path=None, live_refresh_s=None)[source]

Render session to a single HTML file and return its Path.

Defaults to session.reports_dir / “report.html” – the location every ImageEntry’s relative image_path assumes.

live_refresh_s : a positive number makes a browser showing the file reload it every that many seconds, so a report that is being appended to can be watched while it grows. None (default) writes a static page.