5.5. Anaconda modules and D-Bus library
Anaconda’s modules run as independent processes. To communicate with these processes via their D-Bus API, use the dasbus library.
Calls to methods via D-Bus API are asynchronous, but with the dasbus library you can convert them to synchronous method calls in Python. You can also write either of the following programs:
- program with asynchronous calls and return handlers
- A program with synchronous calls that makes the caller wait until the call is complete.
For more information about threads and communication, see Communication across Anaconda threads.
Additionally, Anaconda uses Task objects running in modules. Tasks have a D-Bus API and methods that are automatically executed in additional threads. To successfully run the tasks, use the sync_run_task and async_run_task helper functions.