Skip to main content

dbus-notifier

This library offers a simple means of generating dbus notifications on Linux.

Installation and Usage

Make sure at least Python 3.* is installed on the target Linux system.

Install virtualenv in which to install dbus-notifier.

In the virtual environment, run pip3 install dbus-notifier

In the Python code to use dbus-notifier:

from dbusnotifier.dbusnotifier import NotifySender

The simplest code instantiating NotifySender and sending a dbus notification is this:

    sender = NotifySender(title="My notifier")
    ...
    sender.notify(message="Hi!")

The above code results in a single message "Hi!" being posting in the notification area.

A more complex scenario supported by dbus-notifier is to create a dictionary with a selection of messages, where each key identifies a message. The code below illustrates this case:

    sender = NotifySender(title="My notifier", messages={'0': "Success", '1': "Failed"})
    
    sender.notify(select_key='0')

Dependencies

Please see pyproject.toml.

Status

Mar 2023 First draft, tested locally on Manjaro Linux. Apr 2025 release.

Copyright Adam Bukolt

Note that the copyright refers to the code and scripts in this repository and expressly not to any third-party dependencies.

License

MIT

Icons included with this program were created by and are the sole property of the copyright holder.

Note that separate licenses apply to third-party dependencies.

Metadata

Release files for dbus-notifier 1.1.3

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

Source distribution (sdist)

Source distribution for dbus-notifier 1.1.3
File Size Uploaded Provenance Actions
dbus_notifier-1.1.3.tar.gz 11.8 kB Without provenance Details for dbus_notifier-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dbus-notifier 1.1.3
File Interpreter ABI Platform Actions
dbus_notifier-1.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for dbus_notifier-1.1.3-py2.py3-none-any.whl

Total release size: 30.5 kB

Release files / dbus_notifier-1.1.3.tar.gz

Download URL dbus_notifier-1.1.3.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5f9bc41e8d0d4dfcb33a74348cd687557a932926a26eee37e1e9273dd4760bb1
BLAKE2b-256 checksum
How to use checksums
1eb3bf5faa397e039c319862b1729c2732b164093723600260c62165e52edef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / dbus_notifier-1.1.3-py2.py3-none-any.whl

Download URL dbus_notifier-1.1.3-py2.py3-none-any.whl
Size 18.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5e0a4075c4a77889b17ebf2b794d2e6fdc47cafd652a5434f2abe075be7be1a9
BLAKE2b-256 checksum
How to use checksums
76822c5f84163391a3d6b0a3f7b86cabef3c8d6ff38cf8191ab2a0c2ec294dfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for dbus-notifier 1.1.3

Provenance

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.

No provenance found

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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