$npx skillfedfor your agent

unstructured

A library that prepares raw documents for downstream ML tasks.

With conditionsPyPI Artificial IntelligenceReleased Aug 20265.5M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — unstructured-0.25.2-py3-none-any.whl
v0.25.2 · released 2026-08-03 · Python <3.14,>=3.11 · 24 runtime deps: beautifulsoup4, charset-normalizer, emoji, filelock, filetype, html5lib, installer, langdetect

Yes, with conditions. Install if you need to process multiple document formats and can manage the 24 runtime dependencies and system-level tools. The active maintenance, permissive license, and broad format support make it a solid choice for LLM data preparation pipelines. Skip if you only need to parse a single format (use a lighter, format-specific library instead) or if your environment cannot accommodate the dependency footprint.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • System dependencies required for full functionality: libmagic-dev (filetype detection), poppler-utils (PDFs/images), tesseract-ocr (OCR), libreoffice (MS Office).
  • Minimal install works for text, HTML, XML, JSON, emails only.
  • Low friction installation with a pure Python wheel.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and proprietary projects.

last release 2026-08-03 (11 days) · last repo commit 2026-08-14 · 15,312 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,518,206 downloads/mo, #2,084 on PyPI

Verify before relying

pip install unstructured

from unstructured.partition.auto import partition
elements = partition(filename="document.pdf")
for el in elements:
    print(el)
  • Whether all 60+ file types mentioned in the description are fully supported in version 0.25.2 or if some require paid/enterprise features
  • Performance characteristics and memory footprint when processing large documents or batches
  • Whether the MCP server integration mentioned in the description is included in the PyPI package or requires separate installation
Same gist for agents: .md · .json

What it is and what it does

Unstructured is a document processing library that converts raw files in many formats into structured, machine-readable elements. It handles PDFs, Word documents, HTML, emails, images, and dozens of other formats, extracting text and metadata while preserving document structure. The library is designed to prepare unstructured data for downstream machine learning tasks, particularly for large language models.

The package works by partitioning documents into semantic elements (paragraphs, tables, headers, etc.), then optionally enriching and chunking them for vector databases or other ML workflows. It ships with 24 runtime dependencies including parsing libraries (beautifulsoup4, lxml, html5lib), NLP tools (spacy, langdetect), and numerical computing (numpy, numba). Installation requires system-level dependencies for full format support, though a minimal install handles text and markup formats without them.

Use it for

  • Extract and structure text from PDFs and scanned documents for ingestion into vector databases or RAG systems
  • Parse email messages and attachments to prepare them for LLM analysis or archival processing
  • Convert Word documents, PowerPoint slides, and other office formats into structured text for batch processing
  • Chunk long documents into semantically meaningful segments for embedding and retrieval workflows
  • Detect and extract tables from PDFs and images for structured data extraction pipelines

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

Install if you need to process multiple document formats and can manage the 24 runtime dependencies and system-level tools. The active maintenance, permissive license, and broad format support make it a solid choice for LLM data preparation pipelines. Skip if you only need to parse a single format (use a lighter, format-specific library instead) or if your environment cannot accommodate the dependency footprint.

Install

unstructured on PyPI

Before you install

Low friction installation with a pure Python wheel. Active maintenance with a release 11 days ago and 15312 GitHub stars. Requires 24 runtime dependencies including heavy libraries (spacy, numba, numpy, lxml), so initial install may take time despite the wheel format.

System dependencies required for full functionality: libmagic-dev (filetype detection), poppler-utils (PDFs/images), tesseract-ocr (OCR), libreoffice (MS Office). Minimal install works for text, HTML, XML, JSON, emails only.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and proprietary projects.

Quickstart

pip install unstructured

from unstructured.partition.auto import partition
elements = partition(filename="document.pdf")
for el in elements:
    print(el)

Verify before relying

  • Whether all 60+ file types mentioned in the description are fully supported in version 0.25.2 or if some require paid/enterprise features
  • Performance characteristics and memory footprint when processing large documents or batches
  • Whether the MCP server integration mentioned in the description is included in the PyPI package or requires separate installation

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <3.14,>=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
24 packages
beautifulsoup4charset-normalizeremojifilelockfiletypehtml5libinstallerlangdetectlxmlnh3numbanumpypsutilpython-iso639python-magicpython-oxmsgrapidfuzzregexrequestsspacytqdmtyping-extensionsunstructured-clientwrapt
MaintenanceActively maintained 11 days since the last release
Last repo commit
First released
Downloads5,518,206 / month, #2,084 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: unstructured-0.25.2-py3-none-any.whl

Tags

Capabilities
document parsing and preprocessingpdf text extractionunstructured data ingestionllm document preparationmulti-format file parsingdocument chunking and enrichmenthtml and email parsing
Topics
document-processingdata-preparationllm-pipeline
PyPI keywords
CVHTMLNLPPDFXMLparsingpreprocessing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “document parsing and preprocessing”

  • unstructuredIngests and pre-processes unstructured documents (PDFs, HTML, Word,…
  • unstructured-inferenceRuns inference on layout-parsing and document-analysis models to…
  • textacytextacy extends spaCy's NLP capabilities with pre- and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also unstructured-client · unstructured-inference · unstructured-ingest · langchain-unstructured · pymupdf4llm · llama-parse · chonkie · kreuzberg · pdftext · mineru