Fso Python binding

Guillaume Chereau charlie at openmoko.org
Mon Feb 16 03:44:43 CET 2009

Hi Michele,

I share your feeling that directly using dbus in python is a little bit
I didn't try your your code, just had a look at it, I like how the dbus
methods are directly added into the object instead of using the
__getattr__ method, it means we can use automatic completion from the
python interpreter, something that is missing with DBus proxy objects.

What I like less is that you are using GObject, which mean I won't be
able use your library for paroli.

Also I though all the signals in GObject class had to be declared at the
class level, how does it work with your introspection mechanism ?

Anyway, I think it is a good initiative, maybe Mickey will consider
adding this or something similar to the framework git.


On Mon, 2009-02-16 at 02:22 +0100, Michele Renda wrote:
> Hello to all
> I am writing here to show something I was working today, and I'd like to
> know your opinions.
> I try to explain with a few of words. How someone of you know, I wrote
> Sephora. In lastest day I lost some time to trying to fix sephora with
> the new fso milestone. Where I was working I realized that I hate dbus
> :) Ok, I know it is very important, it is cross language compatibile,
> but I program in python, and I don't like to write too much code. If I
> want to turn on a led I want to do something like:
> device = ODeviced()
> device.getLED().getGta02AuxRed().setBlinking(2, 3)
> Or if I want to react to a function I want to do something like this:
> gps = OGpsd()
> def myfunc(i):
>      # I do something here
> gps.connect('fixStatusChanged', myfunc)
> So, I studied a bit how to use reflection in Python and the source code
> written by Michael Lauer, and I wrote a Python binding for FSO, and I
> called with a lot of fantasy PyFso (It is only a transitory name,
> because I think this name is already used for another project).
> You can have a look here: [1]
> To help the navigation, it also print the structure of the object I
> created [2].
> For now it is only a proof of concept. I would like to know if someone
> else have the same feeling with dbus.
> Thank you
> Michele Renda
> [1] http://dl.getdropbox.com/u/562269/PyFso/pyfso.py
> [2] /home/michele/Dropbox/Public/PyFso/structure.txt
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.openmoko.org/pipermail/community/attachments/20090216/2fae03e8/attachment.pgp 

More information about the community mailing list