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-0.0.1.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-0.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for neco_ping-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf2bfc9591d38719e653ff50af8dc2b470576a25181e1773ce9ee3d66d26066e
MD5 459132a13a473d0496784b861e6302a4
BLAKE2b-256 d55282f92847a2a312d5dddb075a06b65edf312f098f222393bb5976deafe1b8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for neco_ping-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c1359f46c1fbbd1213181973605299beb5fe0d619603ec324c5df29cdbf05c
MD5 5d5cc78225849a17cbd5ffb0627f187b
BLAKE2b-256 1328b4ca1560c4f4c62b48c0708152147a943ab448a505415eaa40d045884cbb

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