Processed online by Toolvito
Docstring Generator
Paste Python code. Get docstrings for the functions and classes that have none, in the style you use, and an API reference made from the docstrings.
Three ways to use it
- Add docstring skeletons: the parameters with their types, Returns, Yields and Raises are filled in from the code; you write the text where it says TODO.
- Write docstrings with AI: a language model that runs on the Toolvito server writes the text. The parameter names come from the code, and code inserts the docstrings.
- Make API docs from docstrings: each public function, class and method with its signature and docstring, as Markdown, HTML and a Sphinx api.rst (with automodule).
Your code stays the same
After the docstrings are added, the code is parsed again and compared with yours: apart from the docstrings, the syntax tree must be the same, or nothing is changed. The code is never run. Check the AI texts: they can be wrong.