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


Download files

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

Source Distribution

winnotify-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distributions

winnotify-0.1.0-cp36-cp36m-win_amd64.whl (12.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

winnotify-0.1.0-cp36-cp36m-win32.whl (11.2 kB view details)

Uploaded CPython 3.6m Windows x86

File details

Details for the file winnotify-0.1.0.tar.gz.

File metadata

  • Download URL: winnotify-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for winnotify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aca1763bf6ce01f3d989b277a767637b2b6b21e537c5c9121dda245cc243a8cb
MD5 2c993426b712aba4fe6cf59de25bebbd
BLAKE2b-256 c2fdb4f79388406c91d6670eb33731a3144a58384aea955f93512fd6bcf65877

See more details on using hashes here.

File details

Details for the file winnotify-0.1.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: winnotify-0.1.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for winnotify-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ff06919f637684d8d8fff955a4612ac843c7ab804fb8f9f8251827f2da5bf05a
MD5 ce00838de81d7f18693715831e77322b
BLAKE2b-256 324e43b0d889598662ef60cbdfbec23fbe29ab7398c2aba6aa62f8c351936922

See more details on using hashes here.

File details

Details for the file winnotify-0.1.0-cp36-cp36m-win32.whl.

File metadata

  • Download URL: winnotify-0.1.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for winnotify-0.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 726089519a6d020dfc33710f04b68e5899d9bbe2512dcefb88690856d8dc09e5
MD5 322df1c8708f029db5ca2ad1e63faf13
BLAKE2b-256 32f72b1a2573303ffa0ceaf73d91e0cbedcc5f5f240c1fa223c699398d9fe91b

See more details on using hashes here.

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