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)[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.