Coverage for src / quber / review / __init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-09-23 22:14 -0400
« prev ^ index » next coverage.py v7.14.0, created at 2026-09-23 22:14 -0400
1"""Reviewable renderings of an extraction result.
3Turns an already-extracted ``list[ExtractedTable]`` plus its source PDF into
4artifacts a human can check against the source material -- without re-running
5the extraction:
7- ``render_review_html``: per-table before/after (source region + bounding box
8 beside the final corrected markdown).
9- ``render_annotated_pdf``: the source pages with the Set-of-Mark bounding
10 boxes drawn on.
11- ``render_flags_html``: the review queue of flagged extraction decisions —
12 each table carrying any flag, as printed beside the extraction output with
13 the flagged cells highlighted and the reasoning for each flag.
15Both the ``quber extract --review`` path and the extraction-review skill call
16these, so the rendering lives in one place.
17"""
19from quber.review.annotated import render_annotated_pdf
20from quber.review.flags import render_flags_html
21from quber.review.html import render_review_html
23__all__ = ["render_review_html", "render_annotated_pdf", "render_flags_html"]