Skip to main content

Overwatcher

A simple app for sending telegram notification on completion of a long-running command.

Setting up

Install package:

pip install overwatcher

Setup environment variables (at least two required):

export OVERWATCHER_TOKEN=...
export OVERWATCHER_CHAT=...

The former should contain token of a telegram bot which could be obtained from @BotFather, the latter can be requested from @chatid_echo_bot. Other env variables are not necessary:

export OVERWATCHER_BASE_FILE_PATH=... # base filepath from which to start searching mentioned files (default value is /home)
export OVERWATCHER_N_FILES=... # the number of last files from the log to push (default value is 3)
export OVERWATCHER_N_LINES=... # the number of lines from command output to forward (default value is 20)
export OVERWATCHER_MAX_LINE_LENGTH=... # max number of characters on a single line (default value is 100)

Usage

Example:

python -m overwatcher notify "ls -alh && sleep 10"

Response is sent to a telegram chat:

Command echo nice is completed in 0.003 seconds. Result:
nice

Metadata

Release files for overwatcher 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for overwatcher 0.8
File Size Uploaded Provenance Actions
overwatcher-0.8.tar.gz 3.8 kB Without provenance Details for overwatcher-0.8.tar.gz

Release files / overwatcher-0.8.tar.gz

Download URL overwatcher-0.8.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c0e03fd44ac2ad17a8821c437a916737332d05acda22773a6b224ea7c1e5894
BLAKE2b-256 checksum
How to use checksums
a64c4877cdd338819a78fde04d472aa41e560eebff8697ce544fad4e99d7ef5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Security for overwatcher 0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page