Skip to content

jpetrucciani/bash.py

Repository files navigation

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