plpipes.action.base#
Action
#
Represents an action to be performed within the plpipes framework.
Attributes:
| Name | Type | Description |
|---|---|---|
_name |
str
|
The name of the action. |
_cfg |
dict
|
Configuration parameters for the action. |
Source code in src\plpipes\action\base.py
__init__(name, action_cfg)
#
Initializes the Action instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the action. |
required |
action_cfg
|
dict
|
Configuration parameters for the action. |
required |
__str__()
#
Returns a string representation of the Action instance.
Returns:
| Name | Type | Description |
|---|---|---|
str |
A string representation of the Action. |
do_it()
#
The main logic of the action must be implemented in subclasses. This should contain the code that performs the action.
name()
#
run(indent=0)
#
Executes the action and logs its execution time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
indent
|
int
|
The indentation level for logging. |
0
|
Source code in src\plpipes\action\base.py
short_name()
#
Returns the short name of the action, derived from the full name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The short name of the action. |