amazon-textract-response-parser
Easily parse JSON returned by Amazon Textract.
Decision gist · record as of 2026-08-14
Yes, if you are actively using Amazon Textract and need structured Python objects to work with its JSON responses. The low install friction and permissive license make it a practical choice. However, dormant maintenance (no release since 2024-06-13) means you should verify that pipeline components and schema support match your Textract API version before relying on it for production workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an active Amazon Textract API call or pre-existing Textract JSON response dict; boto3 must be configured with AWS credentials.
- Low friction install with two stable runtime dependencies (boto3, marshmallow).
- Maintenance is dormant—last commit was 2024-11-19 but no release since 2024-06-13, so expect no active bug fixes or feature updates.
License · maintenance · safety
Apache License Version 2.0 (permissive) — Apache License 2.0 (permissive) allows commercial use, modification, and distribution with minimal restrictions; suitable for most projects.
last release 2024-06-13 (792 days) · last repo commit 2024-11-19 · 236 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,065,985 downloads/mo, #3,327 on PyPI
Alternatives
Verify before relying
from amazon_textract_response_parser.trp2 import TDocument, TDocumentSchema
# j is a dict from Textract API response
t_doc = TDocumentSchema().load(j)
# Access parsed document structure
for page in t_doc.pages:
for block in page.blocks:
print(block.text)- Whether pipeline components (order_blocks_by_geo, add_page_orientation, merge_tables, add_kv_ocr_confidence) are production-ready or experimental.
- Performance characteristics when processing large or multi-page documents.
- Compatibility with recent Textract API changes or new response schema versions.
What it is and what it does
This package deserializes and serializes Amazon Textract OCR JSON responses into strongly-typed Python objects using marshmallow schemas. It provides two main layers: a serializer/deserializer for converting raw Textract JSON into TDocument objects, and a pipeline module with reusable components that modify or enrich the response structure—such as reordering blocks by page geometry, calculating page orientation in degrees, merging or linking multi-page tables, and adding OCR confidence scores to key-value pairs.
The library is designed to integrate into existing Textract workflows without requiring major refactoring. It supports both standard Textract responses and AnalyzeId responses, and includes a command-line tool for testing pipeline components. Runtime dependencies are boto3 (for AWS SDK integration) and marshmallow (for schema validation and serialization).
Use it for
- Deserialize Textract JSON into typed Python objects for downstream document processing or analysis pipelines.
- Reorder OCR blocks by vertical position to reconstruct natural reading order when Textract returns unordered results.
- Detect and correct page rotation by calculating orientation degrees from word and line geometry.
- Merge or link tables that span multiple pages while preserving or enriching geometric accuracy.
- Extract OCR confidence scores for key-value pairs to validate form field extraction quality.
- Build batch processing workflows that transform raw Textract responses into standardized document representations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively using Amazon Textract and need structured Python objects to work with its JSON responses.
The low install friction and permissive license make it a practical choice. However, dormant maintenance (no release since 2024-06-13) means you should verify that pipeline components and schema support match your Textract API version before relying on it for production workflows.
Install
amazon-textract-response-parser on PyPI
Before you install
Low friction install with two stable runtime dependencies (boto3, marshmallow). Maintenance is dormant—last commit was 2024-11-19 but no release since 2024-06-13, so expect no active bug fixes or feature updates.
Requires an active Amazon Textract API call or pre-existing Textract JSON response dict; boto3 must be configured with AWS credentials.
License in practice
Apache License 2.0 (permissive) allows commercial use, modification, and distribution with minimal restrictions; suitable for most projects.
Quickstart
from amazon_textract_response_parser.trp2 import TDocument, TDocumentSchema
# j is a dict from Textract API response
t_doc = TDocumentSchema().load(j)
# Access parsed document structure
for page in t_doc.pages:
for block in page.blocks:
print(block.text)
Verify before relying
- Whether pipeline components (order_blocks_by_geo, add_page_orientation, merge_tables, add_kv_ocr_confidence) are production-ready or experimental.
- Performance characteristics when processing large or multi-page documents.
- Compatibility with recent Textract API changes or new response schema versions.
Package facts
| License | Apache License Version 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesboto3marshmallow |
| Maintenance | Dormant 792 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,065,985 / month, #3,327 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities |
Evidence: amazon_textract_response_parser-1.0.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “textract response parser”
- amazon-textract-response-parserParses JSON responses from Amazon Textract OCR service into typed…
- types-boto3-textractProvides type annotations for boto3's Textract service, enabling…
- mypy-boto3-textractProvides type annotations and IDE autocompletion for the boto3…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also amazon-textract-caller · amazon-textract-textractor · textract · pyocr · types-aiobotocore-textract · types-boto3-textract · tesserocr · layoutparser · jsons · mypy-boto3-textract