perun.monitoring.application¶
Application module.
Attributes¶
Classes¶
Represents an application to be executed. |
Module Contents¶
- class perun.monitoring.application.Application(app: pathlib.Path | Callable | str, config: configparser.ConfigParser, is_binary: bool = False, args: tuple[Any, ...] = (), kwargs: dict[str, Any] = {})[source]¶
Represents an application to be executed.
- Parameters:
app (Path | Callable) – The application to be executed. It can be either a file path or a callable object.
config (ConfigParser) – The configuration object containing application settings.
args (tuple, optional) – Positional arguments to be passed to the application (default is an empty tuple).
kwargs (dict, optional) – Keyword arguments to be passed to the application (default is an empty dictionary).
is_binary (bool)
- name¶
The name of the application.
- Type:
str
- Return type:
str
- args¶
The positional arguments to be passed to the application.
- Type:
tuple
- Return type:
tuple[Any, …]
- kwargs¶
The keyword arguments to be passed to the application.
- Type:
dict
- Return type:
dict[str, Any]
- property name: str¶
Return the application name.
- Return type:
str
- property args: tuple[Any, ...]¶
Return the application positional arguments.
- Return type:
tuple[Any, …]
- property kwargs: dict[str, Any]¶
Return the application keyword arguments.
- Return type:
dict[str, Any]
- property is_binary: bool¶
Return the application keyword arguments.
- Return type:
bool