A native Python implementation of the DBus protocol for Twisted applications.
Project description
Tom Cocagne <tom.cocagne@gmail.com> v1.1.0, July 2017
Introduction
TxDBus is a native Python implementation of the DBus protocol for the Twisted networking framework.
In addition to a tutorial, and collection of examples the documentation for this project also includes An Overview of the DBus Protocol.
License: MIT
Usage Example
#!/usr/bin/env python
from twisted.internet import reactor, defer
from txdbus import error, client
@defer.inlineCallbacks
def show_desktop_notification():
'''
Displays "Hello World!" in a desktop notification window for 3 seconds
'''
con = yield client.connect(reactor, 'session')
notifier = yield con.getRemoteObject('org.freedesktop.Notifications',
'/org/freedesktop/Notifications')
nid = yield notifier.callRemote('Notify',
'Example Application',
0,
'',
'Tx DBus Example',
'Hello World!',
[], dict(),
3000)
reactor.stop()
reactor.callWhenRunning(show_desktop_notification)
reactor.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
txdbus-1.1.1.tar.gz
(61.3 kB
view details)
File details
Details for the file txdbus-1.1.1.tar.gz
.
File metadata
- Download URL: txdbus-1.1.1.tar.gz
- Upload date:
- Size: 61.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 PyPy/7.1.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eefcffa4efbf82ba11222f17f5989fe1b2b6ef57226ef896c4a7084c990ba217 |
|
MD5 | ce8a0e0a17cdbada725e3159802ae75f |
|
BLAKE2b-256 | 4a68dfd06f3f349999cbbb31eade239fe76fbff2d6a905eb7d20449666d1b2ce |