I want to use a bridge between a flask webapp and python subprocesses under python3. I couldn't find a copy paste-able example of a service instantiated without config files for the same.
The reason for wanting to do this is so that I can have multiple threads/processes and use a single Dbus process as a session broker between app instances to hold game state.
All of the trivial Dbus examples I found only included python2.x demos or old versions of whatever mainloop vehicle you prefer.
This example requires:
python3-dbus.mainloop.pyqt5, python3-dbus
Server example:
Client example:
Credits:
Adapted from here to get pyqt5 to listen to Ctl+C
and here to update a tutorial on getting a dbus-python server to run in the PyQt5 mainloop on python3.