Ann: txDBus 1.0 - Native Python implementation of DBus for Twisted

Mark Mikofski bwanamarko at
Fri Jul 6 09:28:36 PDT 2012

Hi, Not to diminish your impressive working porting dbus to native Python, but I wanted to let you all know that with Simon's help, I have successfully ported dbus-python to windows (Simon + others did the _real_ work!). I'm typing up the recipe right now, which I;ll send to Simon to review. Also I'm not 100% sure that all of the functionality is there, but I can import the library dbus into Python. Maybe other windows users can follow the recipe and test it to work out anymore bugs.
Mark Mikofski

 From: Pavel Strashkin <pavel.strashkin at>
To: Tom Cocagne <tom.cocagne at> 
Cc: dbus at 
Sent: Friday, July 6, 2012 1:16 AM
Subject: Re: Ann: txDBus 1.0 - Native Python implementation of DBus for Twisted
Hi Tom,

That is just amazing! For those who are not interested in speed that
is a good opportunity to start using dbus + python on Windows while
dbus-python is being ported.

The only thing i miss in txDBus comparing to dbus-python is the way to
export services/objects.
In dbus-python there are dbus.service.BusName (Service) and
dbus.service.Object with dbus_method and dbus_signal decorators.

class MyObject(dbus.service.Object):
  @dbus.service.method(interface, in_args, out_args, ...)
  def sum(self, a, b):
    return self.sumCalculated(a + b) # emits signal

   @dbus.service.signal(interface, signature)
   def sumCalculated(self, sum):
     return sum

Anyway good start. Keep improving it!

2012/7/5 Tom Cocagne <tom.cocagne at>:
> For those interested, I've recently released a pure-python
> implementation of DBus that's specifically geared for the Twisted
> networking library. It's significantly slower than the libdbus binding
> (approximately 1/3rd to 1/5th the performance) on the CPython
> interpreter but runs at about the same speed as the libdbus bindings
> when running on the pypy.
> The documentation includes a comprehensive tutorial on how to use the
> library as well as a general-purpose overview of the DBus protocol.
> Cheers,
> Tom Cocagne
> _______________________________________________
> dbus mailing list
> dbus at
dbus mailing list
dbus at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dbus mailing list