Дает вам представление pydoc
Пример модуля:
# foo.py
def bar():
"""this is the docstring for bar()"""
print 'hello'
def baz():
"""this is the docstring for baz()"""
print 'world'
Теперь вы можете распечатать строки документов, используя следующую команду:
$ pydoc foo.py
Help on module foo:
NAME
foo
FILE
/path/to/foo.py
FUNCTIONS
bar()
this is the docstring for bar()
baz()
this is the docstring for baz()
Вы также можете создать файл справки HTML:
$ pydoc -w ./foo.py
wrote foo.html
, который выглядит следующим образом:
![enter image description here](https://i.stack.imgur.com/7OiV2.png)