Executes a command, allows confirmation to be sent using p/wexpect
Project description
shellexecute
pip install shellexecute
from shellexecute import execute
rtn = execute(
f"echo HI",
send_confirmation=[("HI", "y")],
)
Cross platform way to run shell commands using pexpect (wexpect on windows). VERY useful for installers where you want to automate accepting prompts.
To develop software, run . ./activate.sh
Windows
This environment requires you to use git-bash
.
Linting
Run ./lint.sh
to find linting errors using pylint
, flake8
and mypy
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shellexecute-1.0.3.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for shellexecute-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7add9d49cb5b25fc0e6bed09c6aad2290be81f553265ce4b33df0d5a20863b6d |
|
MD5 | 1921ebb1add3f7ed295ba4a0f45d3a0b |
|
BLAKE2b-256 | b58261177e6687dfb1fdfce7e7b89d1feacd81ce949d13aecacc42da1888f9a4 |