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

  • No release: dont use prefixes

  • 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.2.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.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neco_ping-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 90d6f5622b65f80a7c7820c3f5ab2c6ac242452d9748b9e823ffd3b33ad84be8
MD5 c606bf12455f72c8e1253df394244879
BLAKE2b-256 4eb08e700658a9e6cce28b5d0c69beeccb9b1d539687bc890cec637ea1165c43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neco_ping-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69c07dae88581aff7512e59001a33d2e82766956f12f3347c938fd8081094ca4
MD5 39af14441ac56553c587178db2889639
BLAKE2b-256 02eb70e12fb36f585e4c68669687b5a1dc521f87362f15de2c8bcb9151500823

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