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.0.tar.gz
(59.9 kB
view details)
Built Distribution
File details
Details for the file txdbus-1.1.0.tar.gz
.
File metadata
- Download URL: txdbus-1.1.0.tar.gz
- Upload date:
- Size: 59.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ff57f42c58d935956024b3c6824c1019db7d233d0af86aa0573b73b63b0817c |
|
MD5 | f17c9204c7f56365c297ba68e6840900 |
|
BLAKE2b-256 | 8e7c0b8726b82943ae99dc71b8fe20e2e0beb7feb4ef61105865021a64f08b16 |
File details
Details for the file txdbus-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: txdbus-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7949b075d5ce14ee65491f77e24fb637d8f010999467e2d396192024b5106ee |
|
MD5 | 7775c17fd6da11d2d9b2cb7be1176fbf |
|
BLAKE2b-256 | 2acf6b96c889295564ad3c8dc9363ecb1980b9687ad945b25e534bd561d76239 |