Skip to main content

A package to monitor your Machine Learning trainings every where without any additional app.

Project description

Bob Telegram Tools is a python library which allows you to monitor your machine learning methods just by using Telegram without any additional application.


See for detailed instruction, manuals and tutorials.

Installation instructions

You can install the package with pip:

pip install bob-telegram-tools

Getting started

import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import RMSprop
import numpy as np

from bob_telegram_tools.keras import KerasTelegramCallback
from import TelegramBot

X = np.random.rand(1000, 100)
y = (np.random.rand(1000, 3) > 0.5).astype('float32')

model = Sequential()
model.add(Dense(512, activation='relu', input_shape=(100,)))
model.add(Dense(512, activation='relu'))
model.add(Dense(3, activation='softmax'))


n_epochs = 3

token = '<your_token>'
user_id = int('<your_chat_id>')
bot = TelegramBot(token, user_id)

tl = KerasTelegramCallback(bot, epoch_bar=True, to_plot=[
        'metrics': ['loss', 'val_loss']
        'metrics': ['acc', 'val_acc'],
        'title':'Accuracy plot',
        'ylim':(0, 1),
        'xlim':(1, n_epochs)

history =, y,


Code released under the GNU GENERAL PUBLIC LICENSE.

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

bob-telegram-tools-1.1.0.tar.gz (5.9 kB view hashes)

Uploaded source

Built Distribution

bob_telegram_tools-1.1.0-py2.py3-none-any.whl (19.7 kB view hashes)

Uploaded py2 py3

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