simplecmd

Simple wrapper around subprocess


License
Apache-2.0
Install
pip install simplecmd==1.0.0

Documentation

simplecmd

Simple wrapper around subprocess. A single function is provided:

run(*cmd, **kwargs)

Pass a command name and its arguments as cmd.

Optional kwargs:

  • cwd: current working directory (string)
  • capture: capture stdout and return it (bool)
  • capture_stderr: redirect stderr to stdout and return it (bool)
  • env: environment variables (dict)