Python documentation tool.
pydoc <name> ...
Displays the document corresponding to the specified name. name specifies Python keywords, topics, functions, modules, and packages. You can also refer to the classes and functions contained in the module in the module or package with dots.
If name contains /, it will be used as the path to the Python source file. If name is a keyword, topic, or module, the document corresponding to the specified name is displayed.
Options
-k keyword Searches for the specified keyword in the overview description of all available modules.
-p port Starts the HTTP server on the specified port on the local machine.
-g Displays a graphical interface for finding / providing documents.
Note: Lubuntu requires the installation of the python-tk package. (Not verified on the original Ubuntu)
-w name ... Exports the HTML document for the specified module to the current directory. If name contains /, name is treated as a file name. If name is a directory name, the documents for all modules contained in the directory are output.
Recommended Posts