amazon-textract-textractor
A package to use AWS Textract services.
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-textractoruv
uv add amazon-textract-textractorpoetry
poetry add amazon-textract-textractorInstalling 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
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
amazon-textract-callerWrapper around Amazon Textract that handles…
permissive · top 5,000 on PyPI
amazon-textract-response-parserParses JSON responses from Amazon Textract OCR…
permissive · top 5,000 on PyPI
textractExtracts text from documents in multiple…
permissive · top 15,000 on PyPI
img2tableIdentifies and extracts tables from images and…
permissive · top 15,000 on PyPI
easyocrEasyOCR performs optical character recognition…
permissive · top 5,000 on PyPI
python-doctrpython-doctr extracts and localizes text from…
permissive · top 15,000 on PyPI
kreuzbergExtracts text, tables, images, and metadata…
permissive · top 15,000 on PyPI
surya-ocrSurya is an OCR and document intelligence model…
permissive · top 5,000 on PyPI
unPDFExtracts individual characters and metadata…
permissive · top 15,000 on PyPI
camelot-pyExtracts tables from PDFs into pandas…
permissive · top 5,000 on PyPI