bash.py icon indicating copy to clipboard operation
bash.py copied to clipboard

An inline Bash script runner, for Python.

image PyPI
version Code style:
black Python 3.6+
supported

An inline Bash script runner, for Python.

Example Usage

>>> import bash

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

>>> proc = _
>>> proc.output
'hi\n'

>>> proc.return_code
0

Installation

$ pipenv install bash.py