genpydoc.commenter package¶
Submodules¶
genpydoc.commenter.commenter module¶
- class genpydoc.commenter.commenter.Commenter(config: Config)¶
Bases:
object- MODELS_MAPPING: dict = {'openai': 'gpt-5-nano'}¶
- async openai_process(prompt: str, node_name: str, responses: dict[str, str]) None¶
- async process_prompt(prompt: str, node_name: str, responses: dict[str, str]) None¶
- async process_prompts(prompts: dict[str, str]) dict[str, str]¶
genpydoc.commenter.transformer module¶
- class genpydoc.commenter.transformer.Parser(config: Config)¶
Bases:
object- post_process(filepath: str | Path, cleanup: bool = True, convert: bool = True) None¶
- process(filepath: Path, comments: dict[str, str]) None¶
- class genpydoc.commenter.transformer.Transformer(config: Config, comments: dict[str, str])¶
Bases:
NodeTransformer- comments: dict[str, str]¶
- visit_AsyncFunctionDef(node: AsyncFunctionDef | FunctionDef | ClassDef) AsyncFunctionDef | FunctionDef | ClassDef¶
- visit_ClassDef(node: AsyncFunctionDef | FunctionDef | ClassDef) AsyncFunctionDef | FunctionDef | ClassDef¶
- visit_FunctionDef(node: AsyncFunctionDef | FunctionDef | ClassDef) AsyncFunctionDef | FunctionDef | ClassDef¶