acidbase.shell

acidbase.shell(command: str, *, check: bool = True, capture_output: bool = True) CompletedProcess[str]

Run a shell command.

Parameters:
  • command (str) – Shell command to run.

  • check (bool) – Raise on non-zero exit code (default True).

  • capture_output (bool) – Capture stdout/stderr instead of streaming to the console.

Returns:

Completed process, with stdout/stderr populated when capture_output is True.

Return type:

subprocess.CompletedProcess