Toolvito

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.

Choose what to do

Task
Add docstring skeletons

More options

Your code is sent to the Toolvito server and parsed there; it is never run. AI docstrings are written by a language model that runs on the server itself. Nothing is sent to another company. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

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.

Related tools