Skip to content

Home

docstr-health logo

Health score and visualization for Python docstrings.

docstr-health analyzes the quality of docstrings across any Python project — locally, from a Git repository, or straight from a PyPI package — and renders a color-coded report in the terminal.

docstr-health preview

Why docstr-health?

  • Local & remote scanning — local directories, Git repositories and PyPI packages.
  • Quality grading — every function gets a status: bad, good, special, epic.
  • Rich terminal UI — panels, tables and progress bars powered by Rich.
  • Configurable rules — symbols, colors and keyword levels via config.toml.
  • PEP 257 awareness — detects Args, Returns, Raises and other sections.
  • CI friendly — a quiet --ci mode with a configurable failure threshold.

Installation

pip install docstr-health
uv tool install docstr-health

Quick start

docstr-health /path/to/project

If no path is given, the current directory is scanned.

What's Next?