Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 276 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 276 Bytes

What is this?

Python functions to call shell command which wraps subprocess.

Usage

from pathlib import Path
import shell

shell.exec("echo 'Hello World!'")
shell.exec("sleep 10", timeout_s = 1, log = Path("./log.txt"))

val = shell.valueof("pwd")
print(val)