Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
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).
Install winotify using pip
pip install winotify
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:
The notification stays in the action center!
Note that the icon path must be absolute otherwise the notification will not show
All supported audio are in the audio
module
from winotify import Notification, audio
toast = Notification(...)
toast.set_audio(audio.Mail, loop=False)
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
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 ofwinotify
to hide the console window.
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.
FAQs
Show notification toast on Windows 10
We found that winotify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.