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

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.

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.2.tar.gz (30.6 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.2-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: doclang-0.7.2.tar.gz
  • Upload date:
  • Size: 30.6 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.2.tar.gz
Algorithm Hash digest
SHA256 89c17a168ef9443c2f814284bae3ea3dbf2f1910e79d4fd6cbdde04aa7c06d40
MD5 f0e8d02d2f6263cce9e184a6dc0bc3aa
BLAKE2b-256 169164ada5d5699e63e6c2c803a85d35a2fb2ee0ceea8e100e513047d56741f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doclang-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 31.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4414931122c6b9d18a8b1fd6cec3d0dd22dad4efec495ab4461240a8cdf7ed
MD5 05f42939b529353818681187446206ad
BLAKE2b-256 ed810bcdae48110bd5cc3ce078a53b351ec31af1e9f2db1a01574708a51a7983

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