Indeed. Python supports dBus very well via the GObject Introspection. The custom python library relies on this and makes it more easy for me to interface with the NetworkManager.
> Date: Fri, 5 Jun 2015 22:00:08 +0200 > Subject: Re: Interaction with ModemManager > From: aleksander aleksander es > To: pieter cardoen hotmail com > CC: arigead gmail com; dcbw redhat com; networkmanager-list gnome org > > On Wed, Jun 3, 2015 at 11:29 AM, Pieter Cardoen > <pieter cardoen hotmail com> wrote: > > This should be possible. I already have some experience with Python and > > NetworkManager-ModemManager. By now, there isn't a Python library available > > for the ModemManager dbus interface but there is for the NetworkManager dbus > > API. > > But you can use ModemManager in Python with libmm-glib via GObject > Introspection very easily, you don't need a custom python library. See > e.g.: > http://cgit.freedesktop.org/ModemManager/ModemManager/tree/examples/modem-watcher-python/ModemWatcher.py > > Or even in _javascript_, if you're into that: > http://cgit.freedesktop.org/ModemManager/ModemManager/tree/examples/modem-watcher-_javascript_/modemWatcher.js > > -- > Aleksander > https://aleksander.es |