annotated-doc
Document parameters, class attributes, return types, and variables inline, with Annotated.
Install
annotated-doc on PyPI
pip
pip install annotated-docuv
uv add annotated-docpoetry
poetry add annotated-docPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: annotated_doc-0.0.5-py3-none-any.whl
About annotated-doc
from the package's own PyPI description — quoted content, verbatim
Annotated Doc
Document parameters, class attributes, return types, and variables inline, with Annotated.
<a href="https://github.com/fastapi/annotated-doc/actions?query=workflow%3ATest+event%3Apush+branch%3Amain" target="_blank"> <img src="https://github.com/fastapi/annotated-doc/actions/workflows/test.yml/badge.svg?event=push&branch=main" alt="Test"> </a> <a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/annotated-doc" target="_blank"> <img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/annotated-doc.svg" alt="Coverage"> </a> <a href="https://pypi.org/project/annotated-doc" target="_blank"> <img src="https://img.shields.io/pypi/v/annotated-doc?color=%2334D058&label=pypi%20package" alt="Package version"> </a> <a href="https://pypi.org/project/annotated-doc" target="_blank"> <img src="https://img.shields.io/pypi/pyversions/annotated-doc.svg?color=%2334D058" alt="Supported Python versions"> </a>
Installation
pip install annotated-doc
Or with uv:
uv add annotated-doc
Usage
Import Doc and pass a single literal string with the documentation for the specific parameter, class...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides a lightweight way to document function parameters, class attributes, return types, and variables using Python's `Annotated` type hint syntax instead of traditional docstrings.
Minimal friction: pure Python wheel with no runtime dependencies, released 16 days ago with active maintenance and recent commits. Supports Python 3.9 through 3.14.
MIT license permits unrestricted commercial and private use, modification, and distribution with only attribution required.
Usage
pip install annotated-doc
from typing import Annotated
from annotated_doc import Doc
def greet(name: Annotated[str, Doc("Person to greet")]) -> None:
print(f"Hello, {name}!")
Verdict: A lightweight, actively maintained library with no dependencies that brings inline documentation to Python type hints. Ideal for FastAPI, Typer, and similar frameworks where parameter documentation lives close to its definition. MIT-licensed and widely compatible across current Python versions.
Needs verification
- Whether the package is actually used by FastAPI, Typer, SQLModel, and Asyncer as claimed, or only supported by griffe-typingdoc
- Runtime performance impact of using Annotated with Doc metadata at scale
Similar packages
permissive · top 100 on PyPI
fastapi-cloud-clipermissive · top 1,000 on PyPI
beartypepermissive · top 1,000 on PyPI
typing-inspectionpermissive · top 100 on PyPI
docstring-parserpermissive · top 1,000 on PyPI
typerpermissive · top 1,000 on PyPI
griffepermissive · top 1,000 on PyPI
fastapi-clipermissive · top 1,000 on PyPI
pydantic-ai-slimpermissive · top 1,000 on PyPI
cycloptspermissive · top 1,000 on PyPI