mantik.config.executable

Attributes

logger

Classes

Apptainer

Information about an Apptainer image.

Execution

Execution environment used for executing a python script.

Python

Python virtual environment used for executing a python script.

Module Contents

class mantik.config.executable.Apptainer[source]

Bases: Execution

Information about an Apptainer image.

Parameters:
  • path (pathlib.Path) – Path to the image.

  • type (str, default="local") – Image type, i.e. if stored locally or remotely.

  • options (list[str], optional) –

    Options to pass to the Apptainer executable.

    Options passed to apptainer run
     srun apptainer run --nv -B /data:/data image.sif
    

classmethod from_dict(config: Dict) Apptainer[source]
get_arguments() str | None[source]
get_execution_command() str[source]
property is_local: bool[source]

Return whether the image is stored locally.

property is_remote: bool[source]

Return whether the image is stored remotely.

property name: str[source]

Return the file name of the image.

options: List[str] | None = None[source]
path: pathlib.Path[source]
path_as_absolute_to(root: pathlib.Path) pathlib.Path[source]

Return the image’s path as an absolute with the given root.

property path_has_to_be_checked: bool[source]
property path_str: str[source]

Return the path as a string

type: str = 'local'[source]
class mantik.config.executable.Execution[source]

Execution environment used for executing a python script.

classmethod from_dict(config: Dict)[source]
Abstractmethod:

abstract get_arguments() List[str] | None[source]
abstract get_execution_command() str | None[source]
path: str[source]
property path_has_to_be_checked: bool[source]
Abstractmethod:

class mantik.config.executable.Python[source]

Bases: Execution

Python virtual environment used for executing a python script.

classmethod from_dict(config: Dict) Python[source]
get_arguments() List[str] | None[source]
get_execution_command() str | None[source]
path: pathlib.Path[source]
property path_has_to_be_checked: bool[source]
mantik.config.executable.logger[source]