Skip to main content

Minimalistic silent Telegram notifier for ML pipelines

Project description

🐾 Neco Ping

Minimalistic, silent Telegram notifier for your weary ML pipelines.
Because your model training takes forever, nya! 😺💤


neco_ping is a tiny, fire-and-forget Python library designed for data scientists and ML engineers who just want a notification when their 10-hour training job is done (or crashed). No polling, no async loops, no complex bot setup—just one simple post request.

If the internet is down or the Telegram API is grumpy, neco_ping stays silent and won't crash your precious script. Safety first, nya!

📦 Installation

Install it via pip (once I publish it, nya!):

pip install neco_ping

🚀 Usage

It's super simple. Just import and send.

from neco_ping import send

# Your secret stuff (shhh!)
BOT_TOKEN = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
MY_CHAT_ID = "123456789"

# ... doing heavy math ...
# ... waiting for GPU to go brrr ...

# Send a message when done!
send(BOT_TOKEN, MY_CHAT_ID, "Master, the training is complete! Accuracy: 99.9% Nya! 😻")

🛠 Features

  • Zero configuration: Just pass the token and ID.
  • Fail-safe: Wraps everything in a broad try-except block. It will never raise an exception, ensuring your script finishes even if the message fails.
  • Sync & Simple: Uses requests under the hood. No asyncio headache for simple scripts.
  • Cute: Verified to increase model accuracy by 0.00% (statistically insignificant, but spiritually powerful).

📝 Example for Jupyter Notebook

# Cell 1
from neco_ping import send
token = "..."
uid = "..."

# Cell 2 (The heavy one)
try:
    model.fit(X_train, y_train, epochs=100)
    send(token, uid, "Training success! Time for Chocola! 🍫")
except Exception as e:
    send(token, uid, f"Nyooo! Training failed: {e} 😿")
    raise e

Made with love, 🐟 and Python.


Commit message rules (for auto-versioning)

We use Conventional Commits so the release tool can decide how to bump the version automatically. [web:99]

Version bumps

  • Patch (1.0.0 -> 1.0.1): use fix: for bugfixes and small corrections.
    Example: fix: add retry for telegram send

  • Minor (1.0.0 -> 1.1.0): use feat: for new features or new public functions.
    Example: feat: add send_markdown helper

  • Major (1.0.0 -> 2.0.0): mark breaking changes with feat! in the type/scope, or add a BREAKING CHANGE: footer.

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

neco_ping-1.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

neco_ping-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file neco_ping-1.0.1.tar.gz.

File metadata

  • Download URL: neco_ping-1.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neco_ping-1.0.1.tar.gz
Algorithm Hash digest
SHA256 40790fbbd6051c9baec36c658e46eafdac21a01e9b1dc469f823fdd688d8c9e9
MD5 455b0534446cc00391a058059a6467a5
BLAKE2b-256 e714c9042d502066fb46a24ba91209b304970abf26f56df3919a7134d9a1360e

See more details on using hashes here.

File details

Details for the file neco_ping-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: neco_ping-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neco_ping-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc05112b10c603b0ce7e91f5f4ff6a8b2fdb96f06a531a98df74c71656f668a
MD5 82119b70cb197fed0d180c46e3838177
BLAKE2b-256 dd7b02a1bce8d12fd8d2ce4394566970b87a7c501ca1124821c3173fbaf931e3

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