Python Docstring Extractor
Pulls out every docstring in a module and shows which definitions are missing one.
Loading the tool…
How to use this tool
- Paste the module, or load a .py file with the picker.
- Turn on "show only what is missing" to use it as an audit rather than as a reading list.
- Skip private names if a percentage dragged down by small helpers is not useful to you.
- Select Extract the docstrings, then copy the table or download it as CSV.
What python docstring extractor does
Two jobs, one page. The first is documentation: pull every docstring out of a module and read them together, which is a much better way to judge whether the descriptions still match the code than scrolling past the bodies. The second is the audit: see at a glance which functions and classes have nothing at all.
Finding a docstring properly means understanding Python's strings rather than pattern-matching quotes. A docstring can use triple or single quotes, can carry an r or u prefix, can contain quotes of the other kind, and a definition can span several lines before its body starts. All of that is handled by a scanner that reads the source the way the interpreter does. Private names — a leading underscore, but not dunders — can be skipped, because a four-line private helper is rarely where a missing docstring matters, and counting it drags the percentage down for no reason.