Pure Python DBus implementation

Jakub Piotr Cłapa jpc at pld-linux.org
Fri Aug 12 23:35:44 EST 2005


Anthony Baxter wrote:
> Hopefully (I haven't had a chance to look at your code yet) it should also
> be easier to slot a pure-python implementation into alternate event loops. 

It is really easy since it just needs a call to connection.loop_iter 
when new data arrive on the socket. I know that's pretty raw and not 
really prepared for every thing that can happen to a connection but I'm 
not an expert in async-io programming and really must first finish my 
main project so I thought I leave it for now. It's dumb easy to change 
that so it shouldn't be a problem for anyone.

The tried to loosely model the protocols I use (LineProtocol and 
ChunkProtocol) after protocols in Twisted but I don't have much 
experience about how to this TheRigthWay(TM) so anyone with more 
experience in this would be really welcomed. (it should be easy to 
replace it with a BetterThing) :)

> There's possibly value in an alternate implementation for testing
> the main code for regressions, too. 

That is what I hoped for too. I already found one problem (not a bug 
really, but confusing) with UNIX socket addresses.

-- 
Regards,
Jakub Piotr Cłapa


More information about the dbus mailing list