5.7. Documenting source code (TBC)

Important

It is recommended to use the reST docstring format as it is supported by a number of IDEs including PyCharm, Visual Studio Code, Eclipse (remember that your code will be use by others who may not be using the same IDE).

Documenting Python source code with docstrings in IDEs

Pycharm

  1. Getting started

  1. Enabling documentation comments

  2. Create documentation comments in source code

  1. Updating documentation with PyCharm

Automatically generating API documentation from docstrings

Generating api documentation using sphinx-autoapi