library · inferred from evidence
textractor
A Python library for working with AWS Textract, particularly for expense analysis.
- textractor raises `KeyError: 'Relationships'` on documents with blank pages
It is an edge case in textractor's legacy parser (introduced in 1.8.4): when a page is blank/empty, the PAGE block has no child blocks, and Textract strips the `Relationships` key entirely instead of sending an empty list. The parser assume
- textractor raises `KeyError: 'Geometry'` when an expense field has an empty value
This was a real bug in textractor's expense parser. Unlike the Forms API, AnalyzeExpense does not return a bounding box for a key that has no attached value — Textract simply omits the Geometry for empty-value fields, and textractor crashed