Skip to main content

Run a command and notify on completion

Project description

Tellme - Stop Watching Long-Running Server Jobs

PyPI version License: MIT Powered by Apprise LINUX DO

中文说明 / Chinese README


Running something large on a remote server, like downloading a model, installing packages over a slow network, or building a project, usually means one annoying tradeoff: either stay at the terminal and keep checking, or walk away and risk forgetting the result.

Tellme solves that problem.

Tellme is a lightweight CLI tool that wraps a long-running command, waits for it to finish, and then sends you a notification with the result: success or failure, exit code, elapsed time, a tail summary of stdout/stderr, and session hints so you can inspect the full output later.

Notifications are powered by Apprise, so you can route them to services like Telegram, PushMe, and many other channels.

Install

The recommended way to install it is with pipx:

pipx install tellme-notify

Upgrade later with:

pipx upgrade tellme-notify

Install directly from this repository:

pipx install .

Usage

Quick start

Run a command and get notified when it finishes:

tellme wget https://example.com/large-model.bin

If the wrapped command itself starts with - flags, use -- to separate Tellme's arguments from the target command:

tellme -- wget -q https://example.com/file

When the command exits, Tellme sends a message containing the command, exit code, duration, tail output summary, and session information.

Configure notification targets

Use the interactive configuration screen to add your Apprise URLs:

tellme --configure

Inside the configurator, the single-key actions are:

  • a: add an Apprise URL
  • r: remove a URL
  • e: enable or disable a URL
  • c: clear all targets
  • t: toggle WSL Windows Toast support
  • m: set the max stdout/stderr summary length
  • s: save config
  • q: quit

The default config path is ~/.config/tellme/config.yaml.

Example Apprise URLs:

  • Telegram: tgram://<BOT_TOKEN>/<CHAT_ID>/
  • PushMe: pushme://<TOKEN>

For safety, avoid putting tokens directly into shell history. Tellme stores config with private permissions where possible.

Other commands

List all sessions:

tellme --sessions

Show the full output of one session:

tellme --session <SESSION_ID>

Run environment and config diagnostics:

tellme --doctor

WSL Windows Toast

When running inside WSL, Tellme can send native Windows toast notifications through powershell.exe, without requiring a separate Windows-side app.

On non-WSL Linux systems, that channel is safely skipped.

Contributing

If you find a bug or want to suggest an improvement, feel free to open an Issue or a Pull Request.

License

This project is released under the MIT License.


Acknowledgement: notification delivery is powered by Apprise.

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

tellme_notify-0.0.1.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tellme_notify-0.0.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file tellme_notify-0.0.1.tar.gz.

File metadata

  • Download URL: tellme_notify-0.0.1.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tellme_notify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e7f74dbd0a07190011c6b3d61287d222b1defc805b9136b0c9fb5cb860f0c2f6
MD5 2d3c5e4efab29f7b2dad41b1a76c1574
BLAKE2b-256 53ac089b78150a0e16ca6c80ea0817b85251659e2ae8d0b2a99721ab5744f24a

See more details on using hashes here.

File details

Details for the file tellme_notify-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tellme_notify-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tellme_notify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70fb9ff8978188a3ee301c1e74e840d6ecad1b319233b1cac429cef7a648da5c
MD5 c624af056e0b6a7cdb3fd4c4f2ff53d2
BLAKE2b-256 24c3d7028e576a7152032153746990af4aa6bbf240d8c80a3c0190401ee94d1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page