hpcflow.app.Command#

class hpcflow.app.Command(command: str | None = None, executable: str | None = None, arguments: List[str] | None = None, variables: Dict[str, str] | None = None, stdout: str | None = None, stderr: str | None = None, stdin: str | None = None)#

Bases: Command

Methods

from_json_like

get_command_line

Return the resolved command line.

get_output_types

to_dict

to_json_like

Attributes

app

arguments

command

executable

stderr

stdin

stdout

variables

Parameters:
  • command (str | None) –

  • executable (str | None) –

  • arguments (List[str] | None) –

  • variables (Dict[str, str] | None) –

  • stdout (str | None) –

  • stderr (str | None) –

  • stdin (str | None) –

app = BaseApp(name='hpcFlow', version='0.2.0a79')#
arguments: List[str] | None = None#
command: str | None = None#
executable: str | None = None#
classmethod from_json_like(json_like, shared_data=None)#
Parameters:
  • json_like (Union[Dict, List]) –

  • shared_data (Optional[Dict[str, ObjectList]]) –

get_command_line(EAR, shell, env)#

Return the resolved command line.

Return type:

Tuple[str, List[Tuple[str, str]]]

get_output_types()#
stderr: str | None = None#
stdin: str | None = None#
stdout: str | None = None#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
variables: Dict[str, str] | None = None#