Skip to main content

C extension to show native Windows notifications.

Project description

This package provides a Python extension module written in C to show native Windows notifications. Notifications appear as toasts on Windows 10 and as balloons on earlier versions.

There is already win10toast Python module which does more or less the same thing, but as it depends on pywin32 it is not usable in mingw environment, as pywin32 does not compile under mingw.

Installation

Just do:

pip install winnotify

or alternatively run:

python setup.py install

from root directory.

Requirements

winnotify does not depend on any 3rd party modules. You will need Python 3.6 or later.

If you’re compiling from source you’ll need mingw or Windows SDK.

Example

>>> import notify
>>> notify.init('python.ico', callback)
>>> notify.notify('This notification body', 'Title', 'python.ico', False,
... 5, notify.dwInfoFlags.NIIF_USER | notify.dwInfoFlags.NIIF_LARGE_ICON)
>>> notify.uninit()

To check if notification is currently visible:

>>> notify.isvisible()
True

For complete documentation see help(). Supported file types are ico and png, either as standalone files, resources in binaries or memory buffers.

Project details


Release history Release notifications

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for winnotify, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size winnotify-0.1.0-cp36-cp36m-win32.whl (11.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size winnotify-0.1.0-cp36-cp36m-win_amd64.whl (12.3 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size winnotify-0.1.0.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page