skillfed

extend-ai

Official Python SDK for Extend (extend.ai) — the document processing API. Parse, extract, classify, split, and edit PDFs and 35+ file types

extend-ai v1.18.0 183.2K downloads/30d#10,070 on PyPI4
Permissive license MIT Active released

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-ai

uv

uv add extend-ai

poetry

poetry add extend-ai

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

pdf parsing and extractiondocument processing apiocr and document aistructured data extraction from documentspdf classification and splittingdocument workflow automationtyped document extraction
document-processingpdf-extractionapi-client

More Python Modules packages