skillfed

amazon-textract-textractor

A package to use AWS Textract services.

amazon-textract-textractor v1.10.0 843.8K downloads/30d#4,924 on PyPI491
Permissive license Apache 2.0 Active released

What it is and what it does

Textractor is a Python wrapper around Amazon Textract, AWS's document intelligence service. It simplifies calling Textract APIs and parsing responses for text recognition, table extraction, form processing, identity document analysis, and receipt/expense processing. The package handles both single documents and batch workflows, supports multiple input formats (images, PDFs, S3 paths, bytes), and provides a fluent interface for accessing extracted data.

The core library is minimal and lambda-friendly by default, with optional extras for pandas DataFrames, PDF rasterization (via pypdfium2 or pdf2image), and machine-learning-based word search (via sentence_transformers). It depends on Pillow for image handling, XlsxWriter for table export, amazon-textract-caller for API calls, rapidfuzz for fuzzy matching, and tabulate for formatted output. Requires Python 3.10 or later and active AWS credentials.

Use it for:

  • Extract structured text and tables from scanned invoices or receipts for accounting automation
  • Parse form fields from application documents with fuzzy key matching to handle label variations
  • Batch-process identity documents to extract and validate personal information fields
  • Convert PDF documents to searchable text and structured tables for downstream analysis
  • Build document processing pipelines that combine Textract with custom business logic

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Textractor wraps Amazon Textract APIs to extract text, tables, forms, and identity information from documents and images, handling both synchronous and asynchronous processing.

Yes. Textractor is actively maintained, has no known vulnerabilities, installs with low friction, and is permissively licensed. It is the standard Python interface to Textract and well-suited for document extraction workflows. The main consideration is AWS account setup and API costs—not a blocker for most use cases, but verify your budget and credential configuration before deploying.

Install

amazon-textract-textractor on PyPI

pip

pip install amazon-textract-textractor

uv

uv add amazon-textract-textractor

poetry

poetry add amazon-textract-textractor

Installing amazon-textract-textractor

Before you install

Low friction installation with a pure-Python wheel and five straightforward runtime dependencies. Actively maintained with a release 3 days old and recent commits; supports modern Python versions 3.10 through 3.14.

License in practice

Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution in both open and proprietary projects with minimal restrictions.

Quickstart

pip install amazon-textract-textractor

from textractor import Textractor

extractor = Textractor(profile_name="default")
document = extractor.detect_document_text(file_source="image.png")
print(document.lines)

Requires AWS credentials configured (via profile_name or environment variables) and an active AWS account; Textract API calls incur charges.

Verify before relying

  • Whether fuzzy matching via rapidfuzz is used by default or requires explicit configuration
  • Performance characteristics when processing large batches or high-resolution PDFs
  • Whether the CLI tool is included in the base install or requires extras

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — Pillow, XlsxWriter, amazon-textract-caller, rapidfuzz, tabulate
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 843,823/month — #4,924 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: amazon_textract_textractor-1.10.0-py3-none-any.whl

Keywords: amazon, textract, aws, ocr, document

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

aws textract wrapperdocument text extractiontable extraction from imagesform field recognitionocr document processingamazon textract pythonreceipt and id analysis
aws-integrationdocument-extractionocr

More Text Processing packages