/bash.py

An inline Bash script runner, for Python.

Primary LanguagePythonApache License 2.0Apache-2.0

bash.py

An inline Bash script runner, for Python.

Example Usage

>>> import bash

>>> bash.run("echo hi")
<BashProcess pid=24108 return_code=0>

>>> _.output
'hi\n'

Installation

$ pipenv install bash.py