Skip to content
desktop

desktop

Pypi •[email protected] • November 29, 2026

desktop-notifier is a Python library for cross-platform desktop notifications. Currently supported platforms are:

Linux via the dbus service org.freedesktop.Notifications

macOS and iOS via the Notification Center framework

Windows via the WinRT / Python bridge

Where supported by the native platform APIs, desktop-notifier allows for:

Clickable notifications with callbacks on user interaction

Multiple action buttons

A single field (e.g., for chat notifications)

Notification threads (grouping notifications by topic)

Limiting the maximum number of notifications shown in the notification center

An example of how some of this looks like on macOS:

An exhaustive list of features and their platform support is provided in the documentation . In addition, you can query supported features at runtime with DesktopNotifier.get_capabilities() .

Any options or configurations which are not supported by the platform will be silently ignored.

The main API consists of asynchronous methods which need to be awaited. Basic usage only requires the user to specify a notification title and message. For example:

Event loop integration

Using the asynchronous API is highly recommended to prevent multiple milliseconds of blocking IO from DBus or Cocoa APIs. In addition, execution of callbacks requires a running event loop. On Linux, an asyncio event loop will be sufficient but macOS requires a running CFRunLoop .

You can use rubicon-objc to integrate a Core Foundation CFRunLoop with asyncio:

Desktop-notifier itself uses Rubicon Objective-C to interface with Cocoa APIs. A full example integrating with the CFRunLoop is given in examples/eventloop.py . Please refer to the Rubicon Objective-C docs for more information.

Likewise, you can integrate the asyncio event loop with a Gtk main loop on Gnome using gbulb . This is not required for full functionality but may be convenient when developing a Gtk app.

On macOS 10.14 and higher, the implementation uses the UNUserNotificationCenter instead of the deprecated NSUserNotificationCenter . UNUserNotificationCenter only allows signed executables to send desktop notifications. This means that notifications will only work if the Python executable or bundled app has been signed. Note that the installer from python.org provides a properly signed Python framework but homebrew does not (manually signing the executable installed by homebrew should work as well).

If you freeze your code with PyInstaller or a similar packaging solution, you must sign the resulting app bundle for notifications to work. An ad-hoc signature will be sufficient but signing with an Apple developer certificate is recommended for distribution and may be required on future releases of macOS.

This package is opinionated in a few ways:

It does not try to work around platform restrictions, such as changing the app icon on macOS. Workarounds would be hacky and likely be rejected by an App Store review.

The main API consists of async methods and a running event loop is required to respond to user interactions with a notification. This simplifies integration with GUI apps.

Dependencies are pure Python packages without extension modules. This simplifies app bundling and distribution. We make an exception for Windows because interoperability with the Windows Runtime is difficult to achieve without extension modules.

If a certain feature is not supported by a platform, using it will not raise an exception. This allows clients to use a wide feature set where available without worrying exception handling.

If a notification cannot be scheduled, this is logged as a warning and does not raise an exception. Most platforms allow the user to control if and how notifications are delivered and notification delivery therefore cannot be taken as guaranteed.

rubicon-objc on macOS

Release files for desktop-notifier 6.3.0

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

Source distribution (sdist)

Built distribution (wheel)

Total release size: 69.3 kB

Release files / desktop_notifier-6.3.0.tar.gz

Release files / desktop_notifier-6.3.0-py3-none-any.whl

Security for desktop-notifier 6.3.0

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files No provenance

Aug 8, 2025 2 release files No provenance

Apr 27, 2025 2 release files No provenance

Apr 27, 2025 2 release files No provenance

Apr 6, 2025 2 release files No provenance

Apr 6, 2025 2 release files No provenance

Sep 8, 2024 2 release files No provenance

Sep 4, 2024 2 release files No provenance

Jul 7, 2024 2 release files No provenance

Jun 23, 2024 2 release files No provenance

Jun 23, 2024 2 release files No provenance

Jun 22, 2024 2 release files No provenance

Jun 19, 2024 2 release files No provenance

May 6, 2024 2 release files No provenance

May 6, 2024 2 release files No provenance

May 5, 2024 2 release files No provenance

May 5, 2024 2 release files No provenance

Jul 11, 2023 2 release files No provenance

Jul 10, 2023 2 release files No provenance

Jul 3, 2023 2 release files No provenance

May 12, 2023 2 release files No provenance

May 3, 2023 2 release files No provenance

May 1, 2023 2 release files No provenance

May 1, 2023 2 release files No provenance

Feb 1, 2023 2 release files No provenance

Nov 22, 2022 2 release files No provenance

Nov 16, 2022 2 release files No provenance

Nov 15, 2022 2 release files No provenance

Oct 12, 2022 2 release files No provenance

Oct 12, 2022 2 release files No provenance

Mar 29, 2022 2 release files No provenance

Mar 21, 2022 2 release files No provenance

Mar 1, 2022 2 release files No provenance

Feb 27, 2022 2 release files No provenance

Aug 21, 2021 2 release files No provenance

Aug 14, 2021 2 release files No provenance

Jun 21, 2021 2 release files No provenance

Feb 26, 2021 2 release files No provenance

Feb 19, 2021 2 release files No provenance

Feb 18, 2021 2 release files No provenance

Feb 13, 2021 2 release files No provenance

Feb 12, 2021 2 release files No provenance

Feb 11, 2021 2 release files No provenance

Feb 11, 2021 2 release files No provenance

Feb 11, 2021 2 release files No provenance

Feb 11, 2021 2 release files No provenance

Feb 10, 2021 2 release files No provenance

Feb 10, 2021 2 release files No provenance

Feb 10, 2021 2 release files No provenance

Feb 10, 2021 2 release files No provenance

Feb 9, 2021 2 release files No provenance

Feb 9, 2021 2 release files No provenance

Feb 7, 2021 2 release files No provenance

Feb 7, 2021 2 release files No provenance

Feb 6, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Jan 20, 2021 2 release files No provenance

Extracted Entities

Domains (1)

Platforms (4)