MECO™ API Reference
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
mMeco.abstract.operatorAbs.Operator Class Reference

[ ABSTRACT CLASS ] - Class to operate on Python modules. More...

Inheritance diagram for mMeco.abstract.operatorAbs.Operator:
mMeco.operators.callbackOpt.CallbackOperator mMeco.operators.packageGlobalEnvOpt.PackageGlobalEnvOperator mMeco.operators.settingsOpt.SettingsOperator

Public Member Functions

def __init__ (self, module=None)
 Constructor. More...
 
def name (self)
 Property. More...
 
def allLib (self)
 Property. More...
 
def module (self)
 Property. More...
 
def set (self, module=None)
 Set Python module. More...
 
def initialize (self)
 Initialize the attributes of the Python module. More...
 

Static Public Member Functions

def importModule (module)
 Import Python module. More...
 

Static Public Attributes

 MODULE = None
 [ str ] - Default Python module import name.
 

Detailed Description

[ ABSTRACT CLASS ] - Class to operate on Python modules.

Constructor & Destructor Documentation

◆ __init__()

def mMeco.abstract.operatorAbs.Operator.__init__ (   self,
  module = None 
)

Constructor.

Parameters
module[ str | None | in ] - Python module import path or Python module file path.
Exceptions
N/A
Returns
None - None.

Reimplemented in mMeco.operators.packageGlobalEnvOpt.PackageGlobalEnvOperator, mMeco.operators.settingsOpt.SettingsOperator, and mMeco.operators.callbackOpt.CallbackOperator.

Member Function Documentation

◆ name()

def mMeco.abstract.operatorAbs.Operator.name (   self)

Property.

Exceptions
N/A
Returns
str - Value.

◆ allLib()

def mMeco.abstract.operatorAbs.Operator.allLib (   self)

Property.

Exceptions
N/A
Returns
str - Value.

◆ module()

def mMeco.abstract.operatorAbs.Operator.module (   self)

Property.

Exceptions
N/A
Returns
module - Value.

◆ set()

def mMeco.abstract.operatorAbs.Operator.set (   self,
  module = None 
)

Set Python module.

Parameters
module[ str | None | in ] - Python module import path or Python module file path.
Exceptions
N/A
Returns
None - None.

◆ initialize()

def mMeco.abstract.operatorAbs.Operator.initialize (   self)

Initialize the attributes of the Python module.

Exceptions
N/A
Returns
None - None.

◆ importModule()

def mMeco.abstract.operatorAbs.Operator.importModule (   module)
static

Import Python module.

Parameters
module[ str | None | in ] - Python module import path or Python module file path.
Exceptions
IOError- If module provided as file and it doesn't exist.
Returns
module - Python module.

The documentation for this class was generated from the following file: