/Python-Desktop-Notifications

Exposing possibilities of sending desktop notifications from python code.

Primary LanguagePython

Python Desktop Notifications

The Blog Post to this could be found here.

Description

This repo is meant to expose the various ways one could send desktop notifications using python. I went through some available python projects to send desktop notifications, and came up this List and also built a GUI app (with Flet) to compile all of them on one area.

Some Captures

  • GUI application ran on windows:

gui-application-python-desktop-notification

  • Notfication sent with Plyer

notif_plyer

I will keep this repo updated once I find any other python notification library. Please, feel free to make suggestions too :)

Libraries

To install the packages, you could make use of this command:

pip install -r requirements.txt

Code Structure

  • main.py: contains the code for the flet-made GUI application;
  • utils.py: contains the how-to-use code for each notification engine mentioned above;
  • test_images folder: contains images used used in utils.py

Note

  • I tested these libraries only on Windows 10, so I don't/can't know exactly how they will behave on other operating systems. I will be happy to receive Feedbacks on how they work on your OSs.
  • For libraries which are 'Windows only', I added some conditions in the GUI application, so that their respective buttons are disabled on platforms other than Windows OS. This is to avoid Mac or Linux Users from receiving unnecessary errors.