Skip to main content

A small dbus notifier package

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbus_notifier-1.1.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbus_notifier-1.1.2-py2.py3-none-any.whl (18.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dbus_notifier-1.1.2.tar.gz.

File metadata

  • Download URL: dbus_notifier-1.1.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}

File hashes

Hashes for dbus_notifier-1.1.2.tar.gz
Algorithm Hash digest
SHA256 04a96dbd3f8604499d4b1d78d2d578bc3a81e5417c1d64b6e8ed4d0ff8c15806
MD5 c5cef76805bc3981c17748b418079281
BLAKE2b-256 390f2255e0029ebe051b60d937354bd8d44c3065cfeee53f2bf93672275c27dd

See more details on using hashes here.

File details

Details for the file dbus_notifier-1.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: dbus_notifier-1.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}

File hashes

Hashes for dbus_notifier-1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd695d57ccb583dd73a3f23a58c5af133255023a0809875dc3ba3466e852c676
MD5 58f4f581958b017fb9cf354152c83e1a
BLAKE2b-256 1db384c3844417b728d2c541bb1f4c8f0c02da5151c36221fb1b2956c5752854

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page