This module is very lightweight and only takes about 50kb after installation. It's a python frontend for DesktopToast
GitHub Repo : https://github.com/Tanishq-Banyal/toastify
Install Using : pip install toastify
#+++++++++------EXAMPLE------++++++++++#
from toastify import notify
# CALLING WITH ALL PARAMETERS :-
notify (
BodyText='BodyText is Required !',
AppName='AppName (Optional)',
AppPath='AppPath (Optional)',
TitleText='TitleText (Optional)',
ImagePath='optional_image_path(jpg/png/bmp/ico)'
)
OR IF YOU ONLY WANT BODY TEXT THEN YOU CAN JUST DO :-
notify('My Body Text')
#+++++++++-------NOTES-------++++++++++#
-
NOTIFICATION TIME IS SYSTEM DEAFULT (5sec)
-
The function is blocking by default but you can use threading/asyncio
-
StartMenu Shortcut will be created for your app. (this is a requirement set by microsoft for Toast Notifications)
-
BodyText argument is required !! , rest of the arguments are optional.
-
App Icon Is Set Automatically, it is same as icon of the application that the AppName shortucut in start menu is pointing.