Skip to content

PageLedger 0.6.0

Choose a tag to compare

@peterbussch peterbussch released this 01 Oct 23:37
· 245 commits to main since this release
acafda6

PageLedger 0.6.0 makes the tool usable on real collections: it adds two engines beyond Tesseract, compares engines page by page, warns about the ways text layers and vision models fail, and hardens the failure paths that real archives exposed.

  • Engines. A built-in rapidocr adapter reads scans with RapidOCR and a PP-OCRv5 recognizer you supply (the Cyrillic one keeps ѣ), and a built-in vision adapter reads pages with a vision model behind an OpenAI-compatible endpoint, keeping the exact page image it sent as evidence. Engine recipes cover Tesseract orus, Apple Vision, Surya and others.
  • Comparison. Document jobs compare the engines' readings of each page word by word. Disagreement, differing numbers, and a model reading no other engine confirms each hold the page for review.
  • Warnings. New warnings catch text layers that carry little of the page (stamp-only, digits-only, look-alike scripts, Private Use Area characters) and vision-model failures such as repetition loops, all measured on sampled real pages before their thresholds were set.
  • Hardening. Encrypted and damaged PDFs stop with a named, typed message; missing OCR tools or language packs stop before page 1; hidden files no longer enter folder runs; oversized pages render within a pixel cap; a job that reaches a limit pauses and continues with resume --raise-limit.
  • Documentation for working with a real collection: a glossary, a reference of every warning, hold and disposition, how-to guides, and engine recipes.

Validation: the full local suite passed with Ruff and mypy clean; wheel and source-package inventories passed; both maintained tutorials passed against isolated installations of both packages; the retained 0.5.1 jobs still verify. New artifact fields are optional, so artifacts written by earlier versions still verify.

Install with pip install pageledger==0.6.0, or pip install "pageledger[pdf]==0.6.0" for PDFs; pageledger[rapidocr] adds the RapidOCR engine. Scanned PDFs also require separately installed OCR tools.

The attached distributions and SHA256SUMS are the exact artifacts from the protected PyPI publication workflow (run 36914041636).

5f9a1a9a5b7d950f79f125d170fadd95aecd63d71bd9075f1ec7db1a8e92571d  pageledger-0.6.0-py3-none-any.whl
041d1fbf5434d7f99159037eb3d411d0ee91b6ff42bc496180f59f6ff2e2bf68  pageledger-0.6.0.tar.gz