Scripting against ModemManager

Aleksander Morgado aleksander at aleksander.es
Fri Nov 20 08:22:37 PST 2015


On Fri, Nov 20, 2015 at 3:06 PM, Alfredo Palhares
<masterkorp at masterkorp.net> wrote:
> I want to script the connection of the modem manager, to create an portable
> hotspot.
>
> What is the best way to do it? Just run it trough bash and parse the comands?
> Its there a JSON or easy parsable outputs?
>
> Is there a direct library for Python or Go?

The libmm-glib library is introspectable, so you should be able to use
it through Python's GObject-Introspection support easily; see the
examples folder, which also includes a JavaScript tester:

http://cgit.freedesktop.org/ModemManager/ModemManager/tree/examples


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list