doclang
DocLang reference toolkit
Decision gist · record as of 2026-08-14
Yes. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive license. It fills a specific niche—standardizing document representation for LLM/VLM workflows—with a clean CLI and Python API. Suitable for production use if you are working with DocLang-formatted content or building AI document pipelines.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with only lxml and typer as runtime dependencies.
- Active maintenance with a release within the last 30 days and a live repository.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
last release 2026-07-15 (30 days) · last repo commit 2026-08-13 · 526 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,326,709 downloads/mo, #3,138 on PyPI
Alternatives
Verify before relying
pip install "doclang[schematron-saxon]"
doclang validate -n my_document.dclg
doclang pack my_document.dclg- Whether the optional schematron-saxon extra is required for typical validation workflows or only for advanced use cases.
- Performance characteristics when validating large documents or batch processing many files.
- Maturity and stability guarantees given the first release was 2026-06-02.
What it is and what it does
DocLang is a reference implementation toolkit for a markup format designed specifically for AI and LLM workflows. It provides command-line tools and a Python API to validate documents against the DocLang specification and package them for consumption by language models. The format preserves document structure, semantics, layout, and geometry in a single unambiguous representation that maps cleanly to LLM tokens.
The toolkit depends on lxml for XML processing and typer for CLI construction. It supports validation via XSD and Schematron, and document packaging operations. The package targets Python 3.10 and later, with active development and a specification maintained in the project repository.
Use it for
- Validate DocLang-formatted documents before feeding them to LLM or VLM pipelines to ensure structural correctness.
- Package structured documents for consumption by AI models while preserving layout and semantic information.
- Build document processing workflows that need to maintain both human readability and machine-parseable structure.
- Integrate DocLang validation into CI/CD pipelines for content quality assurance before model inference.
- Convert or normalize unstructured content into a standardized format for multimodal LLM applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package has low install friction, active maintenance, no known vulnerabilities, and a permissive license. It fills a specific niche—standardizing document representation for LLM/VLM workflows—with a clean CLI and Python API. Suitable for production use if you are working with DocLang-formatted content or building AI document pipelines.
Install
doclang on PyPI
Before you install
Low friction: pure Python wheel with only lxml and typer as runtime dependencies. Active maintenance with a release within the last 30 days and a live repository.
Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install "doclang[schematron-saxon]"
doclang validate -n my_document.dclg
doclang pack my_document.dclg
Verify before relying
- Whether the optional schematron-saxon extra is required for typical validation workflows or only for advanced use cases.
- Performance characteristics when validating large documents or batch processing many files.
- Maturity and stability guarantees given the first release was 2026-06-02.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageslxmltyper |
| Maintenance | Actively maintained 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,326,709 / month, #3,138 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTopic :: Text Processing :: Markup :: XML |
Evidence: doclang-0.7.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “document validation markup format”
- doclangDocLang is a reference toolkit for validating and packaging documents…
- adf-libadf_lib creates and manipulates Atlassian Document Format (ADF)…
- pyandocPyandoc wraps Pandoc to convert between document formats by reading…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also docling · poml · skills-ref · toon-format · factur-x · xmlschema · langextract · lxml · turbohtml · tree-sitter-xml