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


Download files

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

Source Distribution

convolut_telegram-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page