Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

pdoc

$ pdoc Official Low Risk
pdoc · Design & Docs · MIT-0 · macos / linux / windows

pdoc (pdoc) inspects Python packages, type annotations, and Google/NumPy/reST docstrings to render clean static HTML API documentation (pdoc my_pkg -o ./docs) with zero conf.py boilerplate. Always pass -o <dir> for finite builds, since omitting -o starts an interactive HTTP preview server.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
pip install pdoc
CLI vs MCP Decision CLI Only

Rendering Python module docstrings and type signatures into static HTML via pdoc requires importing the local Python environment directly.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Clean non-interactive -o static export and --docformat flags, though omitting -o starts a blocking server and there is no --json output.

  • Zero-config pdoc <pkg> -o ./docs finite static build
  • No --json output; omitting -o launches dev server
Trust & Safety 19 / 25

Writes only to -o directory, though inspecting packages requires Python import execution of target modules.

  • Imports target Python modules at runtime to inspect signatures
Setup & Portability 14 / 15

Pure Python package with minimal dependencies, easy to install via pip or uvx across OSes.

  • Lightweight PyPI package (mitmproxy/pdoc)
Utility & Efficiency 12 / 15

Fastest zero-config Python API doc tool supporting type hints, Mermaid diagrams, MathJax, and Google/NumPy/reST docstrings.

  • Single-command HTML output with built-in search
Maintenance & Lineage 9 / 10

Maintained by the mitmproxy team (mitmproxy/pdoc) under permissive MIT-0.

  • Active upstream releases under mitmproxy/pdoc
Docs & Verifiability 8 / 10

Self-hosted crisp documentation at pdoc.dev/docs/pdoc.html.

  • Official docs at pdoc.dev/docs/pdoc.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; renders local Python packages offline.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (MIT-0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# pdoc Agent Rules
- Always pass `-o <output_dir>` in automated runs; omitting `-o` launches a blocking HTTP server.
- Run `pdoc` inside the target project's virtualenv so all imports resolve cleanly.
- Note `pdoc` imports target Python modules at runtime; only run against trusted repositories.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check pdoc version and CLI options
pdoc --version

Prints the installed pdoc version without importing target packages.

Controlled Writes & Previews

Render static Python API docs to HTML
pdoc my_pkg -o ./docs --docformat google

Exports standalone HTML API documentation for my_pkg into ./docs using Google-style docstring parsing.

Strengths for Agents

  • + Zero-config single-command HTML generation (pdoc pkg -o ./docs) with native Python type-hint support.
  • + Supports Google, NumPy, and reStructuredText docstrings plus built-in search.

Caveats & Pitfalls

  • ! Omitting -o starts a live HTTP server and opens a browser unless -n (--no-browser) is set.
  • ! Python-only and requires importing target modules (unsafe on untrusted code).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI