nieshaoshuai / bash.py

An inline Bash script runner, for Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

An inline Bash script runner, for Python.

License:Apache License 2.0


Languages

Language:Python 95.5%Language:Dockerfile 4.5%