Skip to main content

DocLang reference toolkit

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 toolkit 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 Toolkit

You can install the toolkit from PyPI:

pip install doclang

Validation

doclang validate -n my_document.dclg

Packaging

doclang pack my_document.dclg

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.7.0.tar.gz (28.7 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.7.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for doclang-0.7.0.tar.gz
Algorithm Hash digest
SHA256 58c8fcc49d8700cf7a8eb3f256ac4fe47c4fb34f423f8afda50184dc178832a5
MD5 9c98efa3510958964f0763f309a07bfc
BLAKE2b-256 7fa578f6b240f8348340d6e8c25b434ab08d26676472f0dfaeaf325330c09a1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doclang-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 28.8 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14e61b14c94e717e1d742839e647aa04337d99174cb3f86c16382493c1a33bf2
MD5 2c8b8e653f27acebc835005cd0dac923
BLAKE2b-256 390fd39a33521fd7cd357c2a6b0851db1db4c6d9926f3cb156b00e36adc51faa

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