Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Living Documentation Utilities

Static analysis & tests License PyPI

Purpose

living-doc-utilities is the shared Python library of the Living Documentation ecosystem. The living-doc-* collectors, transforms and generators import it as a pinned PyPI package; it has no CLI and no GitHub Action. This page gives the overview, a usage tip, and the page to read next.

Contents

Overview

  • Contracts (living_doc_utilities.contracts): typed models of the six documentation contracts, their JSON Schemas, and the helpers every component shares → Documentation contracts
  • Authoring (living_doc_utilities.authoring): normalisation, the acceptance-criterion grammar, and the parsers for every authoring surface → Authoring
  • Check (living_doc_utilities.check, living_doc_utilities.policy): the authored-input check a caller runs before a merge, its report, and the policy file → Check
  • GitHub (living_doc_utilities.github): action input and output, a rate limiter, a call decorator that never swallows a failure → GitHub helpers
  • Inputs (living_doc_utilities.inputs): a base class for a GitHub Action's inputs → Action inputs and logging
  • Runtime helpers: setup_logging() and shared constants → Action inputs and logging
  • AI-free: every pipeline step is deterministic tooling, with no LLM call → AI-free principle

Usage tip

Python 3.10 or later. Pin the version exactly, and add an extra only for the module that needs it:

pip install "living-doc-utilities==0.9.0"          # contracts, authoring, check, github.utils, inputs
pip install "living-doc-utilities[github]==0.9.0"  # adds the GitHub rate limiter and decorators
pip install "living-doc-utilities[html]==0.9.0"    # adds the HTML sanitiser
from living_doc_utilities.contracts.io import read_artifact, write_artifact
from living_doc_utilities.contracts.testing import full_sample

write_artifact(full_sample("doc-entities-v1.0.0"), "doc-entities.json")
result = read_artifact("doc-entities.json", expected="doc-entities")

assert result.schema_version == "doc-entities-v1.0.0"

Which module needs which extra: Extras. Pinning rules: Versioning.

Where next

I want to… Read
find a module and what it needs installed API
read or write a contract file Documentation contracts
parse authored documents Authoring
check authored files before a merge, or set the policy file Check
look up an error or warning code Errors and warnings
set up the repository, run the gates, release Developer guide
contribute a change Contributing

Developer guide

Setup, quality gates, regeneration, release and documentation rules: DEVELOPER.md.

Contributing

Issues, branches, pull requests and the AI-free principle: CONTRIBUTING.md.

License

Apache License 2.0; see LICENSE.

Contact

Questions, bugs and feature requests: GitHub Issues.

Metadata

Release files for living-doc-utilities 0.9.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for living-doc-utilities 0.9.0rc2
File Size Uploaded Provenance Actions
living_doc_utilities-0.9.0rc2.tar.gz 117.5 kB Without provenance Details for living_doc_utilities-0.9.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for living-doc-utilities 0.9.0rc2
File Interpreter ABI Platform Actions
living_doc_utilities-0.9.0rc2-py3-none-any.whl Python 3 none any Details for living_doc_utilities-0.9.0rc2-py3-none-any.whl

Total release size: 278.1 kB

Release files / living_doc_utilities-0.9.0rc2.tar.gz

Download URL living_doc_utilities-0.9.0rc2.tar.gz
Size 117.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02a68681a6567e2ca1cb8b1697a10ceafa7af88d5fda13bddaf823fc318852aa
BLAKE2b-256 checksum
How to use checksums
a6be5f8cde0500fdc87d7313bfb2528e802182f05ab963cb5ceecb57d821cc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / living_doc_utilities-0.9.0rc2-py3-none-any.whl

Download URL living_doc_utilities-0.9.0rc2-py3-none-any.whl
Size 160.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a21537f89c9810a741c2ab34e8958c7f1deeb33061c7cff32d6615361bd840af
BLAKE2b-256 checksum
How to use checksums
0afb66c2a5fa120849903163f73eea7c69628b3edfa0cdd58eae033082d3a2ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for living-doc-utilities 0.9.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page