Telegram integrations for convolut framework
Project description
Convolut-Telegram
pip install convolut-telegram
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file convolut_telegram-0.0.2.tar.gz
.
File metadata
- Download URL: convolut_telegram-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dbe8506a0747a36165d40df9348f5d1a1ee1c7cc3ef8785b05a9adbc6db195b |
|
MD5 | 5f5cfe3e00bcb5ea27a080026a09ca21 |
|
BLAKE2b-256 | 7ea5bbcd9a6cdca21bd0db844ac404a014a86d2710564fd1507b0f289e848f52 |