docling-core 3.0.0


pip install docling-core

  This release has been yanked

Released: Jan 29, 2025


Meta
Author: Cesar Berrospi Ramis
Maintainer: Cesar Berrospi Ramis
Requires Python: >=3.9,<4.0

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Science/Research

License
  • OSI Approved :: MIT License

Natural Language
  • English

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12

Topic
  • Database
  • Scientific/Engineering :: Information Analysis
  • Software Development :: Libraries :: Python Modules

Typing
  • Typed

Docling Core

PyPI version Python Poetry Code style: black Imports: isort Checked with mypy Pydantic v2 pre-commit License MIT

Docling Core is a library that defines the data types in Docling, leveraging pydantic models.

Installation

To use Docling Core, simply install docling-core from your package manager, e.g. pip:

pip install docling-core

Development setup

To develop for Docling Core, you need Python 3.9 / 3.10 / 3.11 / 3.12 / 3.13 and Poetry. You can then install from your local clone's root dir:

poetry install

To run the pytest suite, execute:

poetry run pytest test

Basic Usage

  • You can validate your JSON objects using the pydantic class definition.

    from docling_core.types import DoclingDocument
    
    data_dict = {...}  # here the object you want to validate, as a dictionary
    DoclingDocument.model_validate(data_dict)
    
    data_str = {...}  # here the object as a JSON string
    DoclingDocument.model_validate_json(data_str)
    
  • You can generate the JSON schema of a model with the script generate_jsonschema.

    # for the `DoclingDocument` type
    generate_jsonschema DoclingDocument
    
    # for the use `Record` type
    generate_jsonschema Record
    

Documentation

Docling Core contains 3 top-level data types:

  • DoclingDocument for publications like books, articles, reports, or patents. The JSON that can be exported using Docling follows this schema. The DoclingDocument type also models the metadata that may be attached to the converted document. Check DoclingDocument for the full JSON schema.
  • Record for structured database records, centered on an entity or subject that is provided with a list of attributes. Related to records, the statements can represent annotations on text by Natural Language Processing (NLP) tools. Check Record for the full JSON schema.
  • Generic for any data representation, ensuring minimal configuration and maximum flexibility. Check Generic for the full JSON schema.

The data schemas are defined using pydantic models, which provide built-in processes to support the creation of data that adhere to those models.

Contributing

Please read Contributing to Docling Core for details.

References

If you use Docling Core in your projects, please consider citing the following:

@techreport{Docling,
  author = "Deep Search Team",
  month = 8,
  title = "Docling Technical Report",
  url = "https://arxiv.org/abs/2408.09869",
  eprint = "2408.09869",
  doi = "10.48550/arXiv.2408.09869",
  version = "1.0.0",
  year = 2024
}

License

The Docling Core codebase is under MIT license. For individual model usage, please refer to the model licenses found in the original packages.

3.0.0 Jan 29, 2025
2.71.0 Mar 30, 2026
2.70.2 Mar 20, 2026
2.70.1 Mar 17, 2026
2.70.0 Mar 13, 2026
2.69.0 Mar 09, 2026
2.68.0 Mar 07, 2026
2.67.1 Mar 05, 2026
2.67.0 Mar 04, 2026
2.66.0 Feb 26, 2026
2.65.2 Feb 23, 2026
2.65.1 Feb 13, 2026
2.65.0 Feb 13, 2026
2.64.0 Feb 09, 2026
2.63.0 Feb 03, 2026
2.62.0 Jan 30, 2026
2.61.0 Jan 26, 2026
2.60.2 Jan 23, 2026
2.60.1 Jan 22, 2026
2.60.0 Jan 20, 2026
2.59.0 Jan 12, 2026
2.58.1 Jan 09, 2026
2.58.0 Jan 08, 2026
2.57.0 Dec 18, 2025
2.56.0 Dec 17, 2025
2.55.0 Dec 10, 2025
2.54.1 Dec 08, 2025
2.54.0 Nov 29, 2025
2.53.0 Nov 27, 2025
2.52.0 Nov 20, 2025
2.51.1 Nov 14, 2025
2.51.0 Nov 12, 2025
2.50.1 Nov 04, 2025
2.50.0 Oct 30, 2025
2.49.0 Oct 16, 2025
2.48.4 Oct 01, 2025
2.48.3 Sep 29, 2025
2.48.2 Sep 22, 2025
2.48.1 Sep 11, 2025
2.48.0 Sep 09, 2025
2.47.0 Sep 02, 2025
2.46.0 Sep 01, 2025
2.45.0 Aug 20, 2025
2.44.2 Aug 14, 2025
2.44.1 Jul 30, 2025
2.44.0 Jul 28, 2025
2.43.1 Jul 23, 2025
2.43.0 Jul 16, 2025
2.42.0 Jul 09, 2025
2.41.0 Jul 09, 2025
2.40.0 Jul 02, 2025
2.39.0 Jun 27, 2025
2.38.2 Jun 25, 2025
2.38.1 Jun 20, 2025
2.38.0 Jun 18, 2025
2.37.0 Jun 13, 2025
2.36.0 Jun 11, 2025
2.35.0 Jun 11, 2025
2.34.2 Jun 10, 2025
2.34.1 Jun 08, 2025
2.34.0 Jun 06, 2025
2.33.1 Jun 04, 2025
2.33.0 Jun 02, 2025
2.32.0 May 27, 2025
2.31.2 May 22, 2025
2.31.1 May 20, 2025
2.31.0 May 18, 2025
2.30.1 May 14, 2025
2.30.0 May 06, 2025
2.29.0 May 01, 2025
2.28.1 Apr 25, 2025
2.28.0 Apr 23, 2025
2.27.0 Apr 16, 2025
2.26.4 Apr 15, 2025
2.26.3 Apr 14, 2025
2.26.2 Apr 14, 2025
2.26.1 Apr 11, 2025
2.26.0 Apr 11, 2025
2.25.0 Mar 31, 2025
2.24.1 Mar 28, 2025
2.24.0 Mar 25, 2025
2.23.3 Mar 19, 2025
2.23.2 Mar 18, 2025
2.23.1 Mar 17, 2025
2.23.0 Mar 13, 2025
2.22.0 Mar 12, 2025
2.21.2 Mar 06, 2025
2.21.1 Feb 28, 2025
2.21.0 Feb 27, 2025
2.20.0 Feb 19, 2025
2.19.1 Feb 17, 2025
2.19.0 Feb 17, 2025
2.18.1 Feb 13, 2025
2.18.0 Feb 10, 2025
2.17.2 Feb 06, 2025
2.17.1 Feb 03, 2025
2.17.0 Feb 03, 2025
2.16.1 Jan 30, 2025
2.16.0 Jan 29, 2025
2.15.1 Jan 21, 2025
2.15.0 Jan 21, 2025
2.14.0 Jan 10, 2025
2.13.1 Jan 08, 2025
2.13.0 Jan 08, 2025
2.12.1 Dec 17, 2024
2.12.0 Dec 17, 2024
2.11.0 Dec 16, 2024
2.10.0 Dec 13, 2024
2.9.0 Dec 09, 2024
2.8.0 Dec 06, 2024
2.7.1 Dec 06, 2024
2.7.0 Dec 04, 2024
2.6.1 Dec 02, 2024
2.6.0 Dec 02, 2024
2.5.1 Nov 27, 2024
2.5.0 Nov 27, 2024
2.4.1 Nov 21, 2024
2.4.0 Nov 18, 2024
2.3.2 Nov 11, 2024
2.3.1 Nov 01, 2024
2.3.0 Oct 29, 2024
2.2.3 Oct 29, 2024
2.2.2 Oct 26, 2024
2.2.1 Oct 25, 2024
2.2.0 Oct 24, 2024
2.1.0 Oct 22, 2024
2.0.1 Oct 18, 2024
2.0.0 Oct 16, 2024
1.7.2 Oct 09, 2024
1.7.1 Oct 07, 2024
1.7.0 Oct 01, 2024
1.6.3 Sep 26, 2024
1.6.2 Sep 24, 2024
1.6.1 Sep 24, 2024
1.6.0 Sep 23, 2024
1.5.0 Sep 20, 2024
1.4.1 Sep 18, 2024
1.4.0 Sep 18, 2024
1.3.0 Sep 11, 2024
1.2.0 Sep 10, 2024
1.1.4 Sep 06, 2024
1.1.3 Aug 28, 2024
1.1.2 Jul 31, 2024
1.1.1 Jul 23, 2024
1.1.0 Jul 18, 2024
1.0.0 Jul 17, 2024
0.2.0 Jul 12, 2024
0.0.1 Jul 17, 2024
Extras:
Dependencies:
jsonref (<2.0.0,>=1.1.0)
jsonschema (<5.0.0,>=4.16.0)
pandas (<3.0.0,>=2.1.4)
pillow (<11.0.0,>=10.3.0)
pydantic (!=2.10.0,!=2.10.1,!=2.10.2,<3.0.0,>=2.6.0)
pyyaml (<7.0.0,>=5.1)
tabulate (<0.10.0,>=0.9.0)
typer (<0.13.0,>=0.12.5)
typing-extensions (<5.0.0,>=4.12.2)