Home

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.

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,Raisesand other sections. - CI friendly — a quiet
--cimode 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?¶
-
Install docstr-health with pip or uv
-
Your first scan in under a minute
-
Local, Git, and PyPI scanning modes
-
Explore the internal modules