Std PythonHelp: Difference between revisions

From FreeCAD Documentation
({{Std Base navi}} to categorize page)
m (Add {{StdMenu}})
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{GuiCommand
{{GuiCommand
|Name=Std PythonHelp
|Name=Std PythonHelp
|MenuLocation=[[Std Help Menu|Help]] → Automatic Python modules documentation
|MenuLocation={{StdMenu|[[Std Help Menu|Help]]}} → Automatic Python modules documentation
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_OnlineHelp|Online help]], [[Std_FreeCADPowerUserHub|Power user hub]], [[Std_Help_Menu|Help menu]]
|SeeAlso=[[Std_OnlineHelp|Online help]], [[Std_FreeCADPowerUserHub|Power user hub]], [[Std_Help_Menu|Help menu]]
Line 18: Line 18:
This web server is based on Python's [https://docs.python.org/3.8/library/pydoc.html#module-pydoc pydoc] module, and thus it extracts the docstrings of Python files ({{incode|.py}}), and textual documentation defined in the Python wrappers ({{incode|.xml}}) which expose the underlying C++ code.
This web server is based on Python's [https://docs.python.org/3.8/library/pydoc.html#module-pydoc pydoc] module, and thus it extracts the docstrings of Python files ({{incode|.py}}), and textual documentation defined in the Python wrappers ({{incode|.xml}}) which expose the underlying C++ code.


==How to use== <!--T:5-->
==Usage== <!--T:5-->


<!--T:6-->
<!--T:6-->
# Open the menu {{MenuCommand|[[Std_Help_Menu|Help]] → [[File:Std_PythonHelp.svg|16px]] [[Std_PythonHelp|Automatic Python modules documentation]]}}
# Open the menu {{MenuCommand|{{StdMenu|[[Std_Help_Menu|Help]]}} → [[File:Std_PythonHelp.svg|16px]] [[Std_PythonHelp|Automatic Python modules documentation]]}}
# Click on any of the links to go to the specific class or function documentation.
# Click on any of the links to go to the specific class or function documentation.



Revision as of 04:09, 19 February 2020

Std PythonHelp

Menu location
Help → Automatic Python modules documentation
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Online help, Power user hub, Help menu

Description

Std PythonHelp starts a web server that communicates with your default browser over a local socket. The page that opens displays the available Python modules, classes and functions of FreeCAD; the different pages are generated in the background automatically.

This web server is based on Python's pydoc module, and thus it extracts the docstrings of Python files (.py), and textual documentation defined in the Python wrappers (.xml) which expose the underlying C++ code.

Usage

  1. Open the menu Help Automatic Python modules documentation
  2. Click on any of the links to go to the specific class or function documentation.