Notifly is an AI Model tracking system designed to monitor the metrics and hardware resources during training the model in real-time alerts over various social networks like Telegram, discord, slack.
Simple Bots to push notifications during an event trigger.
wrapper to send messages, images, files over the bot using API.
wrapper to send message, images, files to the channel using Webhooks.
wrapper to send message, images, files to the channel using API.
python3 --version
If it is not preinstalled for some reason, proceed here and download as per requirement.
Run the following command in terminal to download the required packags for running the tool locally :
pip3 install -r requirements.txt
pip3 install requests==2.24.0
pip3 install matplotlib==3.2.2
pip3 install slackclient==2.9.3
Run the following terminal commands to install the package on the given distros.
pkg install python3
pip3 install notifly
sudo apt install python3-pip
pip3 install notifly
sudo pacman -S python3-pip
pip3 install notifly
This may take a while depending on the network speed.
To see how the tool works,
_@Botfather_
./mybots
.from notifly import telegram #import the package
x = telegram.Notifier('bot API token') #create object of class Notifier
x.send_message('message') #send message
x.send_image("image address") #send image(.jpg or .png format)
x.send_file("file address") #send document
x.session_dump() #creates folder named 'downloads' in local folder, downloads/saves message,chat details for current session in 'sessio_dump.json' file
To see how the tool works,
from notifly import discord
x = discord.Notifier(r'webhook') #create object of class Notifier
x.send_message('message') #send message
x.send_file("file address") #send file
x.send_file("image address") #send image
To see how the tool works,
Create an App
.Create App
.Incoming Webhooks
and Activate Incoming Webhooks.Add New Webhook to Workspace
and select a channel from the drop down.This channel name is used as an argument in the sample code. Click Allow
.Add an OAuth Scope
and add the following scopes,
chat:write
chat:write.public
files:write
users:write
Reinstall to Workspace
, select channel and click Allow
.from notifly import slack
x= slack.Notifier('token', channel='channel-name') #create object of class Notiflier
x.send_message('message') #send message
x.send_file("image or file address") #send image/file
Plug and play feature for your tensorflow callbacks
# create your notifier using above methods
from notifly import discord
notifier = discord.Notifier(r'webhook')
class MyNotifierCallback:
@notifier.notify_on_epoch_begin(epoch_interval=1, graph_interval=1, hardware_stats_interval=1)
def on_epoch_begin(self, epoch, logs=None):
pass
@notifier.notify_on_epoch_end(epoch_interval=1, graph_interval=1, hardware_stats_interval=1)
def on_epoch_end(self, epoch, logs=None):
pass
@notifier.notify_on_train_begin()
def on_train_begin(self, logs=None):
pass
@notifier.notify_on_train_end()
def on_train_end(self, logs=None):
pass
model.fit(callbacks=[MyNotifierCallback()])
Read the wiki pages which has all the above steps in great detail with some examples as well 🤩🎉.
git checkout -b feature/mybranch
git commit -m 'Add something'
git push origin feature/mybranch