Skip to main content

DocLang

DocLang

PyPI version Python uv Ruff Checked with mypy pre-commit License Apache 2.0

DocLang is the AI-native markup format for unstructured content — including documents, images, and more. It maps cleanly to LLM tokens while preserving structure, semantics, layout, and geometry in a single, unambiguous representation.

This repository is the home of the normative specification and the reference toolkit for DocLang. If you build with LLMs and VLMs on real-world content, this is where the standard lives.

For additional background information see MOTIVATION.md.

Specification

The source of the specification is available in spec.md and exports to different formats can be found in the exports/ directory.

In case of discrepancies, the authoritative version of the specification is the original Markdown document.

Reference Toolkit

The commands below illustrate basic scenarios. For advanced installation and usage options (minimal install, platform notes, custom Schematron backends, Python API), see the toolkit README.

Installation

pip install "doclang[schematron-saxon]"

Validation

doclang validate -n my_document.dclg

Packaging

doclang pack my_document.dclg

Citation

If you use DocLang in academic or technical work, please cite the specification:

@misc{doclang_2026,
  title        = {DocLang: Universal AI Document Format},
  author       = {{DocLang Project}},
  year         = {2026},
  version      = {main},
  howpublished = {\url{https://github.com/doclang-project/doclang}},
}

Development

To work on this repository — setup, tests, reference generation, releases — see CONTRIBUTING.md.

We ❤️ Open Source AI

DocLang is developed in the open and supported by the LF AI & Data Foundation. Learn more about the project at doclang-project.

Acknowledgements

The following people have contributed to the DocLang specification.

Name Company
Peter Staar IBM
Panos Vagenas IBM
Maksym Lysak IBM
Nikolaos Livathinos IBM
Christoph Auer IBM
Michele Dolfi IBM
Said Gürbüz IBM
Santosh Borse IBM
Yousaf Shah IBM
Maroun Touma IBM
Christopher Giblin IBM
Marlene Wolfgruber ABBYY
Maxime Vermeir ABBYY
Morgan Logue ABBYY
Andrew Pery ABBYY
Jehlum Vitasta Pandit RedHat
Ali Maredia RedHat
Micaela Kaplan HumanSignal
Ryan Chesler NVIDIA
Riccardo Maggioni Forgis

License

DocLang is licensed under the Apache License 2.0. See LICENSE for details.

Metadata

Release files for doclang 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doclang 0.8.1
File Size Uploaded Provenance Actions
doclang-0.8.1.tar.gz 66.6 kB Without provenance Details for doclang-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doclang 0.8.1
File Interpreter ABI Platform Actions
doclang-0.8.1-py3-none-any.whl Python 3 none any Details for doclang-0.8.1-py3-none-any.whl

Total release size: 136.6 kB

Release files / doclang-0.8.1.tar.gz

Download URL doclang-0.8.1.tar.gz
Size 66.6 kB
Tags Source
SHA-256 checksum
How to use checksums
737f94b6b8dff6290005bcb753a735653cb7a741efc15c4d37429e2f750fdef5
BLAKE2b-256 checksum
How to use checksums
74e25af0521ab4eadb8b867efeb02e1b4d05db43900937d6c29d269dc760634e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / doclang-0.8.1-py3-none-any.whl

Download URL doclang-0.8.1-py3-none-any.whl
Size 70.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35e97454d238dbb40923fa04f15e0c648f27e2138c1602ce927b5a7c197b7c96
BLAKE2b-256 checksum
How to use checksums
0f234af9a8c5b23d5c3343fbe936b2b0bb2ac2b1a25ad818cc6e92f828d47b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for doclang 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page