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.

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.0.tar.gz (7.1 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.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neco_ping-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 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.0.tar.gz
Algorithm Hash digest
SHA256 1b99753c56f79d1a01bbfa2d3a6f1571da376f08967cbadf892b7ae2bcc1f292
MD5 b28bffba8a1d176fdb0e96c1eab66330
BLAKE2b-256 24fd8494f6a825a6873b29a210acd0afa4c42de929b0fd1dcbef167576d05812

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neco_ping-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 617994e4817c54a15565224f6f2e2baf341d348bb49fc629142a81378ca862be
MD5 cfd71e1291deed972db460414bc40775
BLAKE2b-256 1226ce9f300b09bcf47321a3eafe33f2390b9d15ffcc57863bc31d165bc85dd1

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