perun.monitoring.application ============================ .. py:module:: perun.monitoring.application .. autoapi-nested-parse:: Application module. Attributes ---------- .. autoapisummary:: perun.monitoring.application.log Classes ------- .. autoapisummary:: perun.monitoring.application.Application Module Contents --------------- .. py:data:: log .. py:class:: Application(app: pathlib.Path | Callable | str, config: configparser.ConfigParser, is_binary: bool = False, args: tuple[Any, Ellipsis] = (), kwargs: dict[str, Any] = {}) Represents an application to be executed. :param app: The application to be executed. It can be either a file path or a callable object. :type app: Path | Callable :param config: The configuration object containing application settings. :type config: ConfigParser :param args: Positional arguments to be passed to the application (default is an empty tuple). :type args: tuple, optional :param kwargs: Keyword arguments to be passed to the application (default is an empty dictionary). :type kwargs: dict, optional .. attribute:: name The name of the application. :type: str .. attribute:: args The positional arguments to be passed to the application. :type: tuple .. attribute:: kwargs The keyword arguments to be passed to the application. :type: dict .. method:: run() Executes the application. .. py:property:: name :type: str Return the application name. .. py:property:: args :type: tuple[Any, Ellipsis] Return the application positional arguments. .. py:property:: kwargs :type: dict[str, Any] Return the application keyword arguments. .. py:property:: is_binary :type: bool Return the application keyword arguments. .. py:method:: run() -> Any Execute the application. If callable, returns the function result. :raises ValueError: If the application is not found.