Skip to main content

DocLang reference validator

Project description

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 validator for DocLang. If you build with LLMs and VLMs on real-world content, this is where the standard lives.

Specification

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

Reference Validator

You can install the validator from PyPI:

pip install doclang

You can then validate a DocLang document as follows:

doclang validate -n my_document.dclg.xml

For more details, see the doclang/README.md.

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.

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doclang-0.5.0.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doclang-0.5.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file doclang-0.5.0.tar.gz.

File metadata

  • Download URL: doclang-0.5.0.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for doclang-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fd95f91d2d0611043257dae5192cc4a5f7856ff34fb45970deec7dd8bdb61bf9
MD5 4880924adc4c82095ebe3b3f65ad4f87
BLAKE2b-256 aafdf2f0fa592bef3e76af9e3326cfa9a64e14fa7eceed6eaaa98ba22b706303

See more details on using hashes here.

File details

Details for the file doclang-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: doclang-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for doclang-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73b5edc9da374da7ac4c07db0f3148a26e21c1b51ca96c307a7075ced7d9773a
MD5 ea98820b2f49456f8a35ec520833066c
BLAKE2b-256 561e797fbb4d22703ff637318e7b015cbdb68930cd905ecf299388d888e6477f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page