Skip to main content

Executes a command, allows confirmation to be sent using p/wexpect

Project description

shellexecute

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

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.

Versions

  • 1.0.5: Fix coloram issue in non windows builds.
  • 1.0.4: Timeout is now set to None by default.

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.5.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

shellexecute-1.0.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file shellexecute-1.0.5.tar.gz.

File metadata

  • Download URL: shellexecute-1.0.5.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for shellexecute-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4563d73da2cf1efdf79bfd2658dcaab6b15b8bd6f04c3a12c09f80b383c443b2
MD5 52d84f7738058fdb8ad1b513c7027a18
BLAKE2b-256 2d743ca0ae14e1792f9e31787458849723ddd371805e7646a56b82134dbb5974

See more details on using hashes here.

File details

Details for the file shellexecute-1.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for shellexecute-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c21c98e8f893ce0c29253899c0e0fef0f30d65a294bcd933a8eba50a266b6ffb
MD5 a0f32dd93af2f703ef964a6e388634f2
BLAKE2b-256 73bdd928f5546df4f8015bc40ecb00abbdefc53a05a21eb2d43e22bb8a0aefd7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page