Windows toast notifications sender
Project description
Windows-Toasts
Windows-Toasts is a Python library used to send toast notifications on Windows machines.
Installation
Windows-Toasts supports Windows 10 and 11. While toast notifications do work on Windows 8.1 and below, Microsoft added features in Windows 10 that were never backported.
Windows-Toasts is available through PyPI:
$ python -m pip install windows-toasts
Usage
Simple usage:
>>> from windows_toasts import WindowsToaster, ToastText1
>>> wintoaster = WindowsToaster('Python')
>>> newToast = ToastText1()
>>> newToast.SetBody('Hello, world!')
>>> newToast.on_activated = lambda _: print('Toast clicked!')
>>> wintoaster.show_toast(newToast)
But I already saw this package three times on PyPI!
I created this library since the other Windows toast notification libraries were all but abandoned, lacked features, and were using pywin32 bindings.
Credits
The code is adapted from mohabouje's wonderful C++ WinToasts library
Big thanks to dlech for his recently created winrt fork
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
windows-toasts-0.2.0.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for windows_toasts-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04baee7674276d19a550e7ea00562972d475eed804471ed1f7647c3fb6dd129 |
|
MD5 | 69088dec35d28282d76aa2488fc33b03 |
|
BLAKE2b-256 | 6663db50b1cc1067d426a7a28b2f5fe021a4860f77ecac15ca865696f0f2b6f6 |