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.1.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.1-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: doclang-0.7.1.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.1.tar.gz
Algorithm Hash digest
SHA256 aa2391b08751e311033b614b11dbeb3cd236f71772fe3db5722f4871361bd11d
MD5 9282ec2a0cdc17fb83828d0d327c6bac
BLAKE2b-256 d25491dc2b332799f743e89fb72610236e8fc876eef2c8a2a4602582e0367019

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doclang-0.7.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79e7179a1cc6a837347ee496469ac9e0882ee917d2c45533d501d4025f787bce
MD5 ebdead565a9fe49b6f48ff24612329bb
BLAKE2b-256 4851e0e77c183123c4447d9f853397a960692de1c813eb36e1b1ace211b58a25

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