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")],
outstream=fake_stream,
)
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.2.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for shellexecute-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 459e4f3a696bcf06ab8502b04a7e6887736e6988bcb1a91d530b083c9f0bc50e |
|
MD5 | 11f7fe0f1fa3b246335013890d81dffc |
|
BLAKE2b-256 | 8886ef82558d70cc01ed843a7263d0ad9e5dfff16a3b8f6c69abbc9d62cda24c |