Skip to main content

Pythonic DBus library

Project description

Pythonic DBus library.

It’s based on PyGI, the Python GObject Introspection bindings, which is the recommended way to use GLib from Python. Unfortunately, PyGI is not packaged on pypi, so you need to install it from your distribution’s repository (usually called python-gi, python-gobject or pygobject3).

It’s pythonic!

from pydbus import SessionBus

bus = SessionBus()
notifications = bus.get('.Notifications')

notifications.Notify('test', 0, 'dialog-information', "Hello World!", "pydbus works :)", [], {}, 5000)
from pydbus import SystemBus

bus = SystemBus()
systemd = bus.get(".systemd1")

for unit in systemd.ListUnits()[0]:
    print(unit)

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

pydbus-0.2.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file pydbus-0.2.tar.gz.

File metadata

  • Download URL: pydbus-0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydbus-0.2.tar.gz
Algorithm Hash digest
SHA256 5a02b07e03d97e3bf2a388c34659ceee6603c57038de4d024b46915ce13dc2a8
MD5 d0e8806c80017de9178bddf49cfca35b
BLAKE2b-256 f786affcd494202a75444c586bfb819e509f931067fd3805261e21603e633b1d

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