3 \page python_doc_generale General presentation of the KERNEL python package
5 The KERNEL python package essentially contains:
7 - Helper functions to manipulate KERNEL objects from python. For
8 example, the <b>studyedit.py</b> module facilitates the
9 manipulation of components and items in %SALOME study.
10 - General purpose functions for logging and other recurrent
11 stuff in python programming.
13 Note that these functions either encapsulate the python programming
14 interface of KERNEL core (the CORBA or SWIG interfaces for example) or
15 extend existing utilities as the <b>salome*.py</b> modules.
17 The functions are distributed in the python package
18 <a href="group__salome__kernel.html">salome.kernel</a>. For example, the usage
19 of the study editor to manipulate some objects can be done with a set
23 from salome.kernel.studyedit import getStudyEditor
25 studyEditor = getStudyEditor() # Get an editor for the current study
27 myStudyComponent = studyEditor.findOrCreateComponent( moduleName,
30 myStudyItem = studyEditor.createItem( myStudyComponent,
32 comment = itemComment,
36 The specification of the programming interface of this package is
37 detailed in the part \ref python_doc_api of this documentation.
40 The main package \b salome contains other sub-packages that are
41 distributed with the other %SALOME modules. For example, the GEOM
42 module provides the python package \b salome.geom and SMESH the
43 package \b salome.smesh.