exec-notifier-0.1.9
توضیحات
Tool to notify you when command will be executed.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | exec-notifier-0.1.9 |
| نام | exec-notifier |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ivan Kuznetsov |
| ایمیل نویسنده | tikerlade@gmail.com |
| آدرس صفحه اصلی | https://github.com/tikerlade/exec-notifier |
| آدرس اینترنتی | https://pypi.org/project/exec-notifier/ |
| مجوز | - |
<h1> <img align="center" width="64" height="64" src="https://habrastorage.org/webt/x8/jn/ao/x8jnaoprxwqpopluc_oldypk284.png"> Execution Notifier </h1>
[](https://pypi.org/project/exec-notifier/)
[](https://github.com/psf/black)
[](https://github.com/tikerlade/exec-notifier/actions/)
[](https://github.com/tikerlade/exec-notifier/actions/)
[](https://results.pre-commit.ci/latest/github/tikerlade/exec-notifier/master)

This tool provides you ability to send yourself information about looong executed command when it is done. Information will be sent using Telegram Bot. Logs and error messages (if they'll occur) will be delivered too.
If your log will be too long (longer 1_000_000 signs we'll not send it).
## Prerequisites
1. Python 3.4 or higher
2. Telegram ID - get it from [@exec_notifier_bot](https://telegram.me/exec_notifier_bot) by using `/start` command.
## Installation and running
You need to run your commands in quotes(`""`) when passing script to run.
```shell
>>> pip install exec-notifier
>>> exec_notifier config --telegram_id=YOUR_TELEGRAM_ID
>>> exec_notifier notify "[your_command_here]"
```
## Examples
```shell
>>> exec_notifier notify "ls -l | head"
>>> exec_notifier notify "ls -l > output.txt"
>>> exec_notifier notify "ls -l && sleep 3 && ps"
>>> exec_notifier notify "zip Downloads"
```
## Future
* Your own bot support will be added
نیازمندی
| مقدار | نام |
|---|---|
| >=2.25.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4,<4.0 | Python |
نحوه نصب
نصب پکیج whl exec-notifier-0.1.9:
pip install exec-notifier-0.1.9.whl
نصب پکیج tar.gz exec-notifier-0.1.9:
pip install exec-notifier-0.1.9.tar.gz