---
title: "doclang | pypx"
description: "DocLang reference toolkit"
canonical_url: "https://pypx.app/packages/doclang"
meta:
  "og:description": "DocLang reference toolkit"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_doclang%2Cversion_0.10.1%2Csummary_DocLang%2Breference%2Btoolkit%2Clicense_Apache-2.0%2Cp_Ii9wYWNrYWdlcy9kb2NsYW5nIg%2Cs_X7jm34aXyZluojRG.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "doclang 0.10.1"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_doclang%2Cversion_0.10.1%2Csummary_DocLang%2Breference%2Btoolkit%2Clicense_Apache-2.0%2Cp_Ii9wYWNrYWdlcy9kb2NsYW5nIg%2Cs_X7jm34aXyZluojRG.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **doclang**

v0.10.1

DocLang reference toolkit

111 KB Python 3.10+ py3-none-anyApache-2.02 deps

[** Diff **](https://pypx.app/packages/doclang/diff)

`$ uv add doclang`

# DocLang

[![PyPI version](https://img.shields.io/pypi/v/doclang)](https://pypi.org/project/doclang/) ![Python](https://img.shields.io/badge/python-3.10%20%7C%20%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue) [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![License Apache 2.0](https://img.shields.io/github/license/doclang-project/doclang)](https://opensource.org/licenses/Apache-2.0)

**[DocLang](https://www.doclang.ai/) 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](https://github.com/doclang-project/doclang/blob/main/MOTIVATION.md).

## Specification

The source of the specification is available in [spec.md](https://github.com/doclang-project/doclang/blob/main/spec.md) and exports to different formats can be found in the [exports/](https://github.com/doclang-project/doclang/tree/main/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](https://github.com/doclang-project/doclang/blob/main/doclang/README.md).

### 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](https://github.com/doclang-project/doclang/blob/main/CONTRIBUTING.md).

## We ❤️ Open Source AI

DocLang is developed in the open and supported by the [LF AI & Data Foundation](https://lfaidata.foundation/projects/). Learn more about the project at [doclang-project](https://github.com/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](https://github.com/doclang-project/doclang/blob/main/LICENSE) for details.

## **Details **

<dl>

<dt>Version</dt>
<dd>0.10.1</dd>

<dt>License</dt>
<dd>Apache-2.0</dd>

<dt>Python</dt>
<dd>&gt;=3.10</dd>

<dt>Maintainer</dt>
<dd>DocLang Project</dd></dl>

## **Links**

- [Changelog](https://github.com/doclang-project/doclang/blob/main/CHANGELOG.md)
- [Documentation](https://github.com/doclang-project/doclang/blob/main/README.md)
- [Homepage](https://www.doclang.ai/)
- [Issues](https://github.com/doclang-project/doclang/issues)
- [Repository](https://github.com/doclang-project/doclang)
- [View on PyPI](https://pypi.org/project/doclang/)

## **Release Cadence **

**14**

releases in the past year

avg 13 days between releases

## **Maintainers **

- DocLang Project

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/doclang#webpage","@type":"WebPage","description":"DocLang reference toolkit","name":"doclang","url":"https://pypx.app/packages/doclang","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/doclang"]}]},{"@id":"https://pypx.app/packages/doclang#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"DocLang reference toolkit","license":"Apache-2.0","name":"doclang","softwareVersion":"0.10.1"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
