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.6.0.tar.gz (25.1 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.6.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for doclang-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e786df5bfb3059283a50c6727d0f63cb44ad9b25b5dff6ab426f56183f65ef45
MD5 cf44d5c009c7f59a0762294108d08c98
BLAKE2b-256 849e5d2752f782b08bbb1ef30fadf01f0c9b522b8411403c01e7d66d968ca196

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doclang-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5955427e4c3d3fdd49c787d6818ed5ff6a105ff273dceec06515b670732f536b
MD5 d12b0c0a437ae2ee8473e6a586e7c6c1
BLAKE2b-256 09fc58a52c4d3fa9272eee80c36822af865e154629d25d4553559185e21e8209

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