Parses Python docstrings in various formats (Google, NumPy, Sphinx, Epytext).
This module detects the docstring format and extracts structured information including parameters, return values, exceptions, and examples.
Supported Formats
- Google style: Uses
Args:,Returns:,Raises:sections - NumPy style: Uses underlined section headers (
Parameters ----------) - Sphinx/reST style: Uses
:param:,:type:,:returns:directives - Epytext style: Uses
@param,@type,@returntags
Summary
Functions
Detects the docstring style based on content patterns.
Parses a Python docstring and returns structured data.
Types
Functions
Detects the docstring style based on content patterns.
@spec parse(String.t() | nil) :: parsed_doc()
Parses a Python docstring and returns structured data.