Skip to main content

Tool to notify you when command will be executed.

Project description

Execution Notifier

PyPI Code style: black Actions Status pre-commit.ci status

This tool provides you ability to send yourself information about looong executed command when it is done. Information will be sent using Telegram Bot, which you can generate for yourself with Telegram BotFather.

Prerequisites

In execution of your application you will need your Telegram ID. To get it visit @exec_notifier_bot and use /start command.

Installation and running

>>> pip install exec-notifier
>>> exec_notifier config --telegram_id=YOUR_TELEGRAM_ID
>>> exec_notifier notify [your_command_here]

Limitation

If you wnat to run commands with &&, ||, ;, |, > in your terminal please use backslash character \ before each of such symbols.

Another way is to put your command in quotes "".

Example using quotes

>>> exec_notifier notify "ls -l | head"
>>> exec_notifier notify "ls -l > output.txt"
>>> exec_notifier notify "ls -l && sleep 3"

Example using backslash

>>> exec_notifier notify ls -l \| head
>>> exec_notifier notify ls -l \> output.txt
>>> exec_notifier notify ls -l \&\& sleep 3

Future

  • Your own bot supportage will be added

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

exec-notifier-0.1.14.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

exec_notifier-0.1.14-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file exec-notifier-0.1.14.tar.gz.

File metadata

  • Download URL: exec-notifier-0.1.14.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for exec-notifier-0.1.14.tar.gz
Algorithm Hash digest
SHA256 c1e185b19d8cb4f13a92e4b275efffd21535ae58e9fe0f6fb7cbcef589720547
MD5 0b96c34a36d63df99932cfbef576287b
BLAKE2b-256 a01634500ff49539fc3b6fe4eebe53527be4d8c54c1241ac5e9d0baf2fb52366

See more details on using hashes here.

File details

Details for the file exec_notifier-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: exec_notifier-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for exec_notifier-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 acf4f18da8e05cb14c92b78fecff1c66d0918473ab7a8855ffbaba727843a825
MD5 717e0924c0282c8a28e63ec65db4cea6
BLAKE2b-256 fe90361344f9a5928bbffe9b70715c5495ac7c224a9037c2f9ec641ba3b7bdad

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