hpcflow.sdk.submission.shells.base.Shell#

class hpcflow.sdk.submission.shells.base.Shell(executable=None, os_args=None)#

Bases: ABC

Class to represent a shell and templates for jobscript composition.

This class represents a combination of a shell and an OS. For example, running bash on a POSIX OS, and provides snippets that are used to compose a jobscript for that combination.

Methods

get_version_info

Get shell and operating system information.

prepare_JS_path

prepare_element_run_dirs

process_JS_header_args

Attributes

executable

shebang_executable

property executable: List[str]#
abstract get_version_info(exclude_os=False)#

Get shell and operating system information.

Parameters:

exclude_os (bool | None) –

Return type:

Dict

prepare_JS_path(js_path)#
Parameters:

js_path (Path) –

Return type:

str

prepare_element_run_dirs(run_dirs)#
Parameters:

run_dirs (List[List[Path]]) –

Return type:

List[List[str]]

process_JS_header_args(header_args)#
Parameters:

header_args (Dict) –

Return type:

Dict

property shebang_executable: List[str]#