https://github.com/tikerlade/exec-notifier
Tool to notify you when execution of command will be ended. :computer: :arrow_right: :iphone:
https://github.com/tikerlade/exec-notifier
bash notifications pypi python telegram-bot terminal
Last synced: 11 months ago
JSON representation
Tool to notify you when execution of command will be ended. :computer: :arrow_right: :iphone:
- Host: GitHub
- URL: https://github.com/tikerlade/exec-notifier
- Owner: tikerlade
- Created: 2020-12-27T01:01:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-07-21T18:06:59.000Z (11 months ago)
- Last Synced: 2025-07-21T20:21:20.503Z (11 months ago)
- Topics: bash, notifications, pypi, python, telegram-bot, terminal
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Execution Notifier :speech_balloon:
[](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.
**_CLI execution notification_**

**_Notebook execution notification_**

:warning: If your log will be too long (longer 1_000_000 signs we'll not send it).
## Prerequisites :bookmark_tabs:
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.
## CLI 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]"
```
## Jupyter extension installation
If you didn't have any nbextensions yet you need to download them by the following [instrucions](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html).
Run the code from `install_nbextenstion.sh` locally. You can do this by the following command:
```shell
curl -LJO https://raw.githubusercontent.com/tikerlade/exec-notifier/master/install_nbextension.sh
chmod +x install_nbextension.sh
./install_nbextension.sh
rm -rf install_nbextension.sh
```
After this command go to your [Jupyter nbextensions setup page](http://localhost:8888/tree?#nbextensions_configurator): provide your Telegram ID and activate `exec_notifier`.
## Examples
[comment]: <> (
)
```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 :soon:
* Your own bot support will be added