$npx skillfedfor your agent

amazon-textract-response-parser

Easily parse JSON returned by Amazon Textract.

With conditionsPyPI UtilitiesReleased Jun 20242.1M downloads / moApache License Version 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — amazon_textract_response_parser-1.0.3-py2.py3-none-any.whl
v1.0.3 · released 2024-06-13 · Python >=3.8 · 2 runtime deps: boto3, marshmallow

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License Version 2.0 permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
boto3marshmallow
MaintenanceDormant 792 days since the last release
Last repo commit
First released
Downloads2,065,985 / month, #3,327 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
textract response parserparse textract jsonamazon textract ocrtextract document processingocr response parsingtextract json to objectstextract pipeline components
Topics
aws-textractocr-parsingdocument-processing
PyPI keywords
amazon-textract-response-parsertrpawsamazontextractocrresponseparser

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

See also amazon-textract-caller · amazon-textract-textractor · textract · pyocr · types-aiobotocore-textract · types-boto3-textract · tesserocr · layoutparser · jsons · mypy-boto3-textract