Skip to main content

Winotify

A pure python module to show notification toast on Windows 10.

No dependencies, no requirements, all you need is PowerShell installed on your machine (which in every Windows computer have it).

Installation

Install winotify using pip

pip install winotify

Features

  • Notification stays in action center
  • Clickable notification with 5 additional buttons
  • Use function as a callback when clicking the notification

Usage

A simple notification with icon

from winotify import Notification

toast = Notification(app_id="windows app",
                     title="Winotify Test Toast",
                     msg="New Notification!",
                     icon=r"c:\path\to\icon.png")

toast.show()

Result:

image1

The notification stays in the action center!

image2

Note that the icon path must be absolute otherwise the notification will not show

Set sound of the notification

All supported audio are in the audio module

from winotify import Notification, audio

toast = Notification(...)
toast.set_audio(audio.Mail, loop=False)

Add action button

from winotify import Notification

toast = Notification(...)
toast.add_actions(label="Button text", 
                  launch="https://github.com/versa-syahptr/winotify/")

You can add up to 5 buttons each notification

CLI

winotify ^
-id myApp ^
-t "A Title" ^
-m "A message" ^
-i "c:\path\to\icon.png" ^
--audio default ^
--open-url "http://google.com" ^
--action "open github" ^
--action_url "http://github.com"         

Use winotify-nc instead of winotify to hide the console window.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Licence

MIT

Metadata

Release files for winotify 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for winotify 1.1.0
File Size Uploaded
winotify-1.1.0.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for winotify 1.1.0
File Interpreter ABI Platform
winotify-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / winotify-1.1.0.tar.gz

Download URL winotify-1.1.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f8a0d6ff00cb2c1b3dcdfe825431f46f6aa5dc8ce84ffc59e8fda8c7e36687fe
BLAKE2b-256 checksum
How to use checksums
a1b01b304fdd8fd810f1f8e81a2708f8bf72e0987de1a763f0ee81f6d08bcae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3

Release files / winotify-1.1.0-py3-none-any.whl

Download URL winotify-1.1.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13aa9b1196b02ab3e699645b4407371ca73348421f8662565100d70c7cf552d9
BLAKE2b-256 checksum
How to use checksums
72856cc4c738080d60b62cad59d0f32386b8277d40e2bf8c06fd1e4101a17238
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.3

3 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page