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
requestsunder the hood. Noasyncioheadache 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neco_ping-0.0.2.tar.gz.
File metadata
- Download URL: neco_ping-0.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
384f09793ac3e121e004c22efe3f296e655fba31a9f87b3f8f0cdbfbe173b3ca
|
|
| MD5 |
a1a37b81e72ec9049a2a572bafa00327
|
|
| BLAKE2b-256 |
866b692c89b71464c6758f5080cd99d69777933acc105e5869a26fde4f75575e
|
File details
Details for the file neco_ping-0.0.2-py3-none-any.whl.
File metadata
- Download URL: neco_ping-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd2b4b01011ed4f5fe65c81ab443d0a71d8cd02dad24e27ccfa3b509348216e
|
|
| MD5 |
e1289d8184fb8185b3c65c8263a81b1b
|
|
| BLAKE2b-256 |
f481e6045209989a8ca7f8f1b76b7c6af36e072375a53a32d32f3b6eced41165
|