nanome.util.process module

class Process(executable_path=None, args=None, output_text=None, buffer_lines=True, label='', timeout=300)[source]

Bases: object

A command-line process wrapper.
TIMEOUT_CODE = -9
args
A list of arguments to pass to the executable.
Type:list <str>
buffer_lines
Whether or not to buffer output by lines.
Type:bool
cwd_path
The working directory path where the process will be/was executed.
Type:str
executable_path
The path to the executable to be run.
Type:str
id
label
The label for this process to show in logs.
Type:str
output_text
Whether or not the process will produce text output.
Type:bool
start()[source]
Starts the process.
stop()[source]
Stops the process.
timeout
The timeout in seconds for this process to be killed.
Set to None for no timeout.
Type:int