File tree 2 files changed +38
-48
lines changed
2 files changed +38
-48
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : ' bash.py'
3
+ ---
4
+
5
+ [ ![ image] ( https://travis-ci.org/jpetrucciani/bash.py.svg?branch=master )] ( https://travis-ci.org/jpetrucciani/bash.py )
6
+
7
+ [ ![ PyPI version] ( https://badge.fury.io/py/bash.py.svg )] ( https://badge.fury.io/py/bash.py )
8
+
9
+ [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
10
+
11
+ [ ![ Python 3.6+ supported] ( https://img.shields.io/badge/python-3.6+-blue.svg )] ( https://www.python.org/downloads/release/python-360/ )
12
+
13
+ An inline Bash script runner, for Python.
14
+ =========================================
15
+
16
+ Example Usage
17
+ -------------
18
+
19
+ ``` {.pycon}
20
+ >>> import bash
21
+
22
+ >>> bash.run("echo hi")
23
+ <BashProcess pid=24108 return_code=0>
24
+
25
+ >>> proc = _
26
+ >>> proc.output
27
+ 'hi\n'
28
+
29
+ >>> proc.return_code
30
+ 0
31
+ ```
32
+
33
+ Installation
34
+ ------------
35
+
36
+ ``` {.shell}
37
+ $ pipenv install bash.py
38
+ ```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments