Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
An easy-to-use Python library for displaying Windows 10 Toast Notifications. Improved version of win10toast and win10toast-persist to include callback_on_click to run a function on notification click, for example to open a URL.
An easy-to-use Python library for displaying Windows 10 Toast Notifications. Improved version of win10toast and win10toast-persist to include
callback_on_click
to run a function on notification click, for example to open a URL.
1: Original module.
2: Tweaked version with support for notifications that persist in the notification center.
This fork is an improved version of 2 ^ with callback_on_click
that allows to run a function on notification click, for example to open a URL.
pip install win10toast-click
# modules
import webbrowser
from win10toast_click import ToastNotifier
# function
page_url = 'http://example.com/'
def open_url():
try:
webbrowser.open_new(page_url)
print('Opening URL...')
except:
print('Failed to open URL. Unsupported variable type.')
# initialize
toaster = ToastNotifier()
# showcase
toaster.show_toast(
"Example two", # title
"Click to open URL! >>", # message
icon_path=None, # 'icon_path'
duration=5, # for how many seconds toast should be visible; None = leave notification in Notification Center
threaded=True, # True = run other code in parallel; False = code execution will wait till notification disappears
callback_on_click=open_url # click notification to run function
)
Using SemVer.
GNU General Public License v3.
setuptools
QuickstartFAQs
An easy-to-use Python library for displaying Windows 10 Toast Notifications. Improved version of win10toast and win10toast-persist to include callback_on_click to run a function on notification click, for example to open a URL.
We found that win10toast-click 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.