# shellexecute
[![Linting](https://github.com/zackees/shellexecute/actions/workflows/lint.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/lint.yml)
[![MacOS_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_macos.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_macos.yml)
[![Ubuntu_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_ubuntu.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_ubuntu.yml)
[![Win_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_win.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_win.yml)
`pip install shellexecute`
```python
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.4: Timeout is now set to None by default.
Raw data
{
"_id": null,
"home_page": "https://github.com/zackees/shellexecute",
"name": "shellexecute",
"maintainer": "Zachary Vorhies",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "template-python-cmd",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/01/04/35b791ab85ca49bbf2864c637702f74af88f1f418ea9bfc097c1204011aa/shellexecute-1.0.4.tar.gz",
"platform": null,
"description": "# shellexecute\r\n\r\n[![Linting](https://github.com/zackees/shellexecute/actions/workflows/lint.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/lint.yml)\r\n\r\n[![MacOS_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_macos.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_macos.yml)\r\n[![Ubuntu_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_ubuntu.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_ubuntu.yml)\r\n[![Win_Tests](https://github.com/zackees/shellexecute/actions/workflows/push_win.yml/badge.svg)](https://github.com/zackees/shellexecute/actions/workflows/push_win.yml)\r\n\r\n`pip install shellexecute`\r\n\r\n```python\r\nfrom shellexecute import execute\r\nrtn = execute(\r\n f\"echo HI\",\r\n send_confirmation=[(\"HI\", \"y\")],\r\n)\r\n```\r\n\r\nCross platform way to run shell commands using pexpect (wexpect on windows). VERY useful for installers where\r\nyou want to automate accepting prompts.\r\n\r\nTo develop software, run `. ./activate.sh`\r\n\r\n# Windows\r\n\r\nThis environment requires you to use `git-bash`.\r\n\r\n# Linting\r\n\r\nRun `./lint.sh` to find linting errors using `pylint`, `flake8` and `mypy`.\r\n\r\n\r\n# Versions\r\n * 1.0.4: Timeout is now set to None by default.\r\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "Executes a command, allows confirmation to be sent using p/wexpect",
"version": "1.0.4",
"split_keywords": [
"template-python-cmd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "079a22150381de42b8c3027a31bc4c2c0ab2d176e734f508d0d317cf389a1a94",
"md5": "8a8bea75ac6d903f00a145a7762caf88",
"sha256": "a0056542e477b0826d364110992e9d4c5493eadbbc4de6c92b09fc25569a33d2"
},
"downloads": -1,
"filename": "shellexecute-1.0.4-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8a8bea75ac6d903f00a145a7762caf88",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 3492,
"upload_time": "2023-02-06T23:41:13",
"upload_time_iso_8601": "2023-02-06T23:41:13.540789Z",
"url": "https://files.pythonhosted.org/packages/07/9a/22150381de42b8c3027a31bc4c2c0ab2d176e734f508d0d317cf389a1a94/shellexecute-1.0.4-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "010435b791ab85ca49bbf2864c637702f74af88f1f418ea9bfc097c1204011aa",
"md5": "24e293391faa62e4bbbd4f325fbf2d39",
"sha256": "f19a4290660c0520bee3222bfe3c9e1c8ba800e1a0c2cc0368c595d58dfe6f27"
},
"downloads": -1,
"filename": "shellexecute-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "24e293391faa62e4bbbd4f325fbf2d39",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8567,
"upload_time": "2023-02-06T23:41:14",
"upload_time_iso_8601": "2023-02-06T23:41:14.963268Z",
"url": "https://files.pythonhosted.org/packages/01/04/35b791ab85ca49bbf2864c637702f74af88f1f418ea9bfc097c1204011aa/shellexecute-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-06 23:41:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "zackees",
"github_project": "shellexecute",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "shellexecute"
}