Skip to main content

Document AI Toolkit

Production-ready document processing toolkit with AI capabilities for text extraction, table detection, OCR, entity recognition, and document classification.

Features

  • Multi-Format Support: PDF, DOCX, HTML, Markdown, TXT, images, and more
  • Text Extraction: Simple, layout-aware, and structured extraction modes
  • Table Detection: Automatic table detection with cell-level extraction
  • OCR Integration: Built-in OCR support with Tesseract, EasyOCR, PaddleOCR
  • Entity Extraction: Named entity recognition (persons, organizations, dates, etc.)
  • Document Classification: Automatic document type detection
  • Layout Analysis: Detect headers, footers, paragraphs, lists, and more
  • Zero Dependencies Core: Core functionality works without heavy dependencies

Installation

pip install document-ai-toolkit          # Core
pip install document-ai-toolkit[pdf]     # PDF support
pip install document-ai-toolkit[ocr]     # OCR support
pip install document-ai-toolkit[full]    # All features

Quick Start

from document_ai_toolkit import DocumentProcessor, ProcessingConfig

# Basic processing
processor = DocumentProcessor()
result = processor.process("document.pdf")

print(result.document.content)
print(f"Pages: {result.document.metadata.page_count}")

# With tables
config = ProcessingConfig(extract_tables=True)
processor = DocumentProcessor(config)
result = processor.process("report.pdf")

for table in result.document.tables:
    print(table.to_dict())

# Classification
from document_ai_toolkit import DocumentClassifier
classifier = DocumentClassifier()
result = classifier.classify("document.pdf")
print(f"Type: {result.document_type.value} ({result.confidence:.0%})")

# Comparison
from document_ai_toolkit import DocumentComparator
comparator = DocumentComparator()
result = comparator.compare("v1.docx", "v2.docx")
print(f"Similarity: {result.similarity_score:.0%}")

Supported Formats

Format Extension Read Write
PDF .pdf ✅ ✅
Word .docx ✅ ✅
HTML .html ✅ ✅
Markdown .md ✅ ✅
Plain Text .txt ✅ ✅
Images .png, .jpg ✅ ❌

License

MIT License - Pranay M

Metadata

Release files for document-ai-toolkit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for document-ai-toolkit 0.1.0
File Size Uploaded Provenance Actions
document_ai_toolkit-0.1.0.tar.gz 12.8 kB Without provenance Details for document_ai_toolkit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for document-ai-toolkit 0.1.0
File Interpreter ABI Platform Actions
document_ai_toolkit-0.1.0-py3-none-any.whl Python 3 none any Details for document_ai_toolkit-0.1.0-py3-none-any.whl

Total release size: 27.0 kB

Release files / document_ai_toolkit-0.1.0.tar.gz

Download URL document_ai_toolkit-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7fd944b03c1e0366984988e3868833c10011cbab0040e420182cdecb5e30953f
BLAKE2b-256 checksum
How to use checksums
6f7dec5c414f2c19bb6b3c64563cd2417d49502036055849416869e0efea0ef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / document_ai_toolkit-0.1.0-py3-none-any.whl

Download URL document_ai_toolkit-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b987e1696ec671468c602b6f3074304a7190e07c01d75c7b4ecc33c3960e697c
BLAKE2b-256 checksum
How to use checksums
a0a19a32bbdeaad6eeebb25517074cd101306af12632e0978a5d49a53be2eb3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for document-ai-toolkit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page