extend-ai
Official Python SDK for Extend (extend.ai) — the document processing API. Parse, extract, classify, split, and edit PDFs and 35+ file types
What it is and what it does
Extend-ai is the official Python SDK for Extend, a cloud-based document processing service. It provides typed, synchronous and asynchronous access to parse, extract structured data, classify, split, and edit documents in PDF and 35+ other file formats. The SDK wraps the Extend API with convenient methods that handle file upload, processing, and result retrieval in a single call.
The library integrates deeply with Pydantic, allowing you to define extraction schemas as typed models and get end-to-end validation from request to response. It includes polling helpers for production workflows, webhook verification utilities, and support for custom field types like ExtendDate, ExtendCurrency, and ExtendSignature. Synchronous methods have a 5-minute timeout and are suited for testing; production workloads should use polling or webhooks instead.
Use it for:
- Extract structured invoice data (line items, totals, dates) into typed Pydantic models for accounting systems.
- Classify incoming documents by type (invoice, receipt, contract) and route them to appropriate processing pipelines.
- Split multi-document PDF packets into individual documents for batch processing workflows.
- Parse unstructured PDFs into semantic chunks for document search and retrieval systems.
- Automate form filling and PDF editing via natural-language instructions.
- Build document processing workflows that chain extraction, classification, and splitting steps.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python SDK for the Extend document processing API, enabling you to parse, extract, classify, split, and edit PDFs and 35+ file types via a few lines of code.
Yes. The SDK is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. It is well-suited for developers building document processing workflows who want typed, convenient access to the Extend API. Start with synchronous methods for prototyping; migrate to polling or webhooks for production workloads.
Install
extend-ai on PyPI
pip
pip install extend-aiuv
uv add extend-aipoetry
poetry add extend-aiInstalling extend-ai
Before you install
Low friction install with four lightweight runtime dependencies (httpx, pydantic, pydantic-core, typing_extensions). Package is actively maintained with a recent release (4 days old) and no known vulnerabilities.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—typical for open-source SDKs.
Quickstart
pip install extend-ai
from extend_ai import Extend
client = Extend(token="YOUR_API_KEY")
result = client.parse(file={"url": "https://example.com/invoice.pdf"})
for chunk in result.output.chunks:
print(chunk.content)
Requires Python 3.8 or later and a valid Extend API key.
Verify before relying
- Whether the 5-minute timeout on synchronous methods is sufficient for typical production document sizes.
- Performance characteristics and latency for batch processing workflows.
- Exact coverage and accuracy of OCR across the 35+ supported file types.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — httpx, pydantic, pydantic-core, typing_extensions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 183,231/month — #10,070 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: extend_ai-1.18.0-py3-none-any.whl
Keywords: extend, document processing, ocr, pdf parsing, data extraction, document ai, idp, extend.ai
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
landingai-adeConverts PDFs and images into structured…
permissive · top 15,000 on PyPI
python-documentcloudA Python wrapper for the DocumentCloud API that…
permissive · top 15,000 on PyPI
kreuzbergExtracts text, tables, images, and metadata…
permissive · top 15,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
PyPDF2PyPDF2 is a pure-Python library for reading,…
permissive · top 1,000 on PyPI
PyPDF3PyPDF3 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
cloudconvertOfficial Python SDK for CloudConvert API v2,…
permissive · top 15,000 on PyPI
vlmrunPython SDK for the VLM Run API platform,…
permissive · top 15,000 on PyPI
PyPDF4PyPDF4 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
pdfservices-sdkClient library for Adobe PDF Services API,…
permissive · top 15,000 on PyPI