Skip to main content

Telegram integrations for convolut framework

Project description

Convolut-Telegram

pip install convolut-telegram

convolut

What you get

what you get

Usage

Basic

# ...
from convolut import Runner
from convolut_telegram import TelegramLogger

# ...

(Runner(loaders=[train_loader, valid_loader], epochs=epochs)
    # ...
    .add(TelegramLogger(token="YOUR_BOT_TOKEN_HERE", chat_id="YOUR_CHAT_ID_HERE"))
    .start()
)

Environment variables

  • Telegram logger uses these envs for initialization
CONVOLUT_LOGGER_TELEGRAM_TOKEN=YOUR_BOT_TOKEN_HERE
CONVOLUT_LOGGER_TELEGRAM_CHAT_ID=YOUR_CHAT_ID_HERE
CONVOLUT_LOGGER_TELEGRAM_MODE=basic # default value
CONVOLUT_LOGGER_TELEGRAM_PROXY=https://api.telegram.org # default value
  • Now you can use it that way:
# ...
from convolut import Runner
from convolut_telegram import TelegramLogger

# ...

(Runner(loaders=[train_loader, valid_loader], epochs=epochs)
    # ...
    .add(TelegramLogger())
    .start()
)

Project details


Release history Release notifications

This version

0.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for convolut-telegram, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size convolut_telegram-0.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page