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.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for shellexecute-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e315a0821d30dae8ebd673793f4a0df0c02e3ab9b988da06722fa08b48c7ac3a |
|
MD5 | 63c1a0f85e94d6f57fa5d222ed60504a |
|
BLAKE2b-256 | 029c2d0af43e9de651845483734662b16e768d37e91191e7197145a9e3104cb8 |