# cli_sender
Designed to send commands into OS terminal
## Features
1. send commands into OS terminal
2. check if cli commands are accessible (special utilities is installed)
3. access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)
## License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
## Release history
See the [HISTORY.md](HISTORY.md) file for release history.
## Installation
```commandline
pip install cli-sender
```
## Import
```python
from cli_sender import *
```
## GUIDE
### USAGE
```python
from cli_sender import *
victim = CliSender()
cmd_line = "ping localhost"
victim.send(cmd_line, timeout=0.1)
victim.print_state()
"""
==================================================
self.last_cmd='ping -n 1 localhost'
self.last_finished_success=True
self.last_finished=True
self.last_retcode=0
--------------------------------------------------
self.last_stdout=
###STDOUT PING!!!
--------------------------------------------------
self.last_stderr=
--------------------------------------------------
self._last_exx_timeout=None
==================================================
"""
```
Raw data
{
"_id": null,
"home_page": "https://github.com/centroid457/",
"name": "cli-sender",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "cli,cli user,cli sender,os terminal,os terminal sender,os terminal user",
"author": "Andrei Starichenko",
"author_email": "centroid@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/26/c8/929478a1b7c43ba942a85a301fdbe3df8e739eafc154bed25f72890a92ed/cli_sender-0.0.2.tar.gz",
"platform": null,
"description": "# cli_sender\r\nDesigned to send commands into OS terminal\r\n\r\n## Features\r\n1. send commands into OS terminal\r\n2. check if cli commands are accessible (special utilities is installed)\r\n3. access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)\r\n\r\n## License\r\nSee the [LICENSE](LICENSE) file for license rights and limitations (MIT).\r\n\r\n\r\n## Release history\r\nSee the [HISTORY.md](HISTORY.md) file for release history.\r\n\r\n\r\n## Installation\r\n```commandline\r\npip install cli-sender\r\n```\r\n\r\n## Import\r\n\r\n```python\r\nfrom cli_sender import *\r\n```\r\n\r\n\r\n## GUIDE\r\n\r\n### USAGE\r\n\r\n```python\r\nfrom cli_sender import *\r\n\r\nvictim = CliSender()\r\n\r\ncmd_line = \"ping localhost\"\r\nvictim.send(cmd_line, timeout=0.1)\r\nvictim.print_state()\r\n\"\"\"\r\n==================================================\r\nself.last_cmd='ping -n 1 localhost'\r\nself.last_finished_success=True\r\nself.last_finished=True\r\nself.last_retcode=0\r\n--------------------------------------------------\r\nself.last_stdout=\r\n\t\r\n ###STDOUT PING!!!\r\n\t\r\n--------------------------------------------------\r\nself.last_stderr=\r\n--------------------------------------------------\r\nself._last_exx_timeout=None\r\n==================================================\r\n\"\"\"\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "use OS terminal",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/centroid457/",
"Source": "https://github.com/centroid457/cli_sender"
},
"split_keywords": [
"cli",
"cli user",
"cli sender",
"os terminal",
"os terminal sender",
"os terminal user"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "89b4c1fdcffc32c0500c902bf4d4d3aec87cc10639add28c70f5b3f86d59130a",
"md5": "3d05ba35b105abce79365f6bcec95de3",
"sha256": "4eb1613cdc853c0f4af47fc100048b8685c236659ce00e022a898dc3b178d5e9"
},
"downloads": -1,
"filename": "cli_sender-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3d05ba35b105abce79365f6bcec95de3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7238,
"upload_time": "2023-12-06T07:37:02",
"upload_time_iso_8601": "2023-12-06T07:37:02.272009Z",
"url": "https://files.pythonhosted.org/packages/89/b4/c1fdcffc32c0500c902bf4d4d3aec87cc10639add28c70f5b3f86d59130a/cli_sender-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26c8929478a1b7c43ba942a85a301fdbe3df8e739eafc154bed25f72890a92ed",
"md5": "1446a07995a43232b86e98ec0c949b42",
"sha256": "4b78ed9eaa71db1678c8899d834218b8e024aa83132f4a633f623f1fa76a8b6c"
},
"downloads": -1,
"filename": "cli_sender-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "1446a07995a43232b86e98ec0c949b42",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4843,
"upload_time": "2023-12-06T07:37:04",
"upload_time_iso_8601": "2023-12-06T07:37:04.095856Z",
"url": "https://files.pythonhosted.org/packages/26/c8/929478a1b7c43ba942a85a301fdbe3df8e739eafc154bed25f72890a92ed/cli_sender-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-06 07:37:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "centroid457",
"github_project": "cli_sender",
"github_not_found": true,
"lcname": "cli-sender"
}