--- id: docling-core version: "2.91.0" license: MIT license_treatment: permissive maintenance: active --- # docling-core — A python library to define and validate data types in Docling. License: permissive · Maintenance: active · Downloads: 6.3M/mo ## What it is and what it does Docling Core is the foundational library for the Docling document processing framework. It defines DoclingDocument as a Pydantic model—a strongly-typed, validated data structure for representing structured documents—and provides a suite of APIs built around it. The library is designed to support generative AI workflows that need to ingest, transform, and analyze documents at scale. The package centers on four main capabilities: the DoclingDocument model itself (with builders and exporters for formats like Markdown and HTML), a pluggable Serialization API for flexible output formats, a Chunking API for breaking documents into semantically meaningful pieces, and a Profiling API for extracting statistics and distributions from individual documents or collections. It depends on Pydantic for validation, Pillow for image handling, pandas for data operations, and several other utilities for LaTeX math, YAML, and XML processing. Use it for: - Build a document ingestion pipeline that parses PDFs or scanned documents into a validated, queryable DoclingDocument structure for RAG systems. - Export extracted document content to multiple formats (Markdown, HTML, JSON) for downstream processing or API consumption. - Chunk large documents into semantically coherent segments for embedding and vector search in AI applications. - Analyze document collections to extract structural metrics (page counts, table distributions, image density) for quality assurance or dataset profiling. - Extend the serialization or chunking logic with custom implementations for domain-specific document processing requirements. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Docling Core defines the foundational DoclingDocument data model and provides APIs for serialization, chunking, and profiling of structured document data for generative AI applications. Yes. Docling Core is actively maintained (release 8 days old), has no known vulnerabilities, uses a permissive MIT license, and offers low install friction. It is production-stable and well-suited for teams building document-centric AI applications. Install if you are working with the Docling framework or need a structured, validated document data model with built-in serialization and chunking. ## Install pip install docling-core uv add docling-core poetry add docling-core ## Installing docling-core Before you install: Low install friction; pure Python wheel with 13 runtime dependencies. Active maintenance with a release 8 days ago and commits through 2026-08-14. Supports Python 3.10 through 3.14. License in practice: MIT license (permissive) allows commercial and private use with minimal restrictions—suitable for most projects. Quickstart: pip install docling-core from docling_core.types import DoclingDocument from docling_core.transforms import serialize_document # Create or load a DoclingDocument doc = DoclingDocument(...) markdown_output = serialize_document(doc, format='markdown') Requires Python 3.10 or later; development setup requires the uv package. Verify before relying: - Whether the 13 runtime dependencies (including pandas, pillow, pyyaml) are all required for basic usage or only for specific features. - Performance characteristics and memory footprint when processing large document collections. - Concrete examples of how the profiling API scales with collection size. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 6.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags document data model pydantic, document serialization chunking, docling document processing, document profiling statistics, structured document extraction, document to markdown html, document schema validation, document-processing, pydantic-models, generative-ai [View on SkillFed](https://skillfed.io/packages/docling-core) · [View on PyPI](https://pypi.org/project/docling-core/)