getsenic / gatt-python

Bluetooth GATT SDK for Python
MIT License
318 stars 86 forks source link

GObject - why dragging in such a huge dependency only for its mainloop? #29

Open mirko opened 6 years ago

mirko commented 6 years ago

Hello!

I wonder about why GObject is a dependency and apparently the only place where GObject is actually used, is gatt/gatt_linux.py:89: self._main_loop = GObject.MainLoop(). As PyGObject also requires GObject-introspection that's a huge I dependency and I wonder what's so special about its mainloop.

If I'm allowed to wish, I'd love to see this dependency gone, however - as I said - there might be good reasons I don't yet understand. Either way, I'd appreciate to understand what's so special about GObject's mainloop.

Snevzor commented 5 years ago

Hello @mirko,

Do you have some updated information on this matter perhaps?

mirko commented 5 years ago

nope

ghost commented 5 years ago

It works fine with self._main_loop = dbus.mainloop.glib.DBusGMainLoop and without GObject as dependency.