System-level utilities and helper functions.
Bases: exceptions.Exception
Bases: exceptions.Exception
Bases: exceptions.Exception
Bases: exceptions.Exception
Helper method to shell out and execute a command through subprocess.
Allows optional retry.
Parameters: |
|
---|---|
Returns: | (stdout, stderr) from process execution |
Raises : | UnknownArgumentError on receiving unknown arguments |
Raises : | |
Raises : | OSError |
Utility to get the default worker count.
A wrapper around execute() to more easily handle warnings and errors.
Returns an (out, err) tuple of strings containing the output of the command’s stdout and stderr. If ‘err’ is not empty then the command can be considered to have failed.