Skip to main content

Tool to notify you when command will be executed.

Project description

Execution Notifier

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

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 by using /start command.

Installation and running

You need to run your commands in quotes("") when passing script to run.

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

Examples

>>> 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

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.31.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

exec_notifier-0.1.31-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exec-notifier-0.1.31.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1043-azure

File hashes

Hashes for exec-notifier-0.1.31.tar.gz
Algorithm Hash digest
SHA256 1e943e0dc69fe8f4dba86019cd4c281430e4b7837a76f280aa6d23f8a133aeff
MD5 4bc8ced05c07049dbdae7cbd1822876b
BLAKE2b-256 da920dd0c5eb5fd573f14237258c4b9039b1aca1444ccdc6bedea30b9af448a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exec_notifier-0.1.31-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1043-azure

File hashes

Hashes for exec_notifier-0.1.31-py3-none-any.whl
Algorithm Hash digest
SHA256 925da7718cc454baedbf1e8c82e984c8bd04d59c7782db60b021944ede1ad1e2
MD5 28bdb076b78e11ac24bf18277ff556e9
BLAKE2b-256 82b6474cf38b10dd659ef16018b85ef67f5b9906bb9b923f7a9afe45ae31fdbb

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