Skip to main content

Windows toast notifications sender

Project description

Windows-Toasts Downloads

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


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.3.0.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distribution

windows_toasts-0.3.0-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

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