Jeepney
Jeepney is a low-level, pure Python D-Bus protocol wrapper, currently at version 0.9.0, designed for interprocess communication on desktop Linux systems. It offers a non-magical approach to D-Bus, requiring more explicit code compared to other interfaces like dbus-python or pydbus. Jeepney is actively maintained with a release cadence of approximately one major version per year.
Warnings
- breaking The deprecated 'connection.router' API has been removed in version 0.9.0. Use proxies or 'send_and_get_reply()' for routing replies to method calls, and 'filter()' for other routing needs.
- breaking The 'unwrap' parameter from 'send_and_get_reply' in the blocking integration has been removed in version 0.9.0.
Install
-
pip install jeepney
Imports
- DBusConnection
from jeepney import DBusConnection
Quickstart
import os from jeepney import DBusConnection # Establish a connection to the D-Bus session bus connection = DBusConnection() # Use the connection to interact with D-Bus services # For example, to call a method on a service: # response = connection.call(service_name, method_name, args) # Remember to handle exceptions and manage the connection lifecycle appropriately