Use HubDB or list to populate choice options in custom module
The general idea is to be able to use a list to populate the options of a choice field in a custom module. This is currently possible at the template level, but not within custom modules. Within custom modules, the choices have to be entered manually.
At its most basic level, imagine a HubDB table consisting of various names. The content editor would have the ability to select which name to display on the page.
Behind the scenes, a list could be built within a custom module using standard HubL queries. That list would then be used to populate the choice field that is displayed to the content editor.
Using the feature at the template level requires all modules within the page to use the same data, whereas having it at the module level would allow for multiple instances of the same module, with different content, on a single page.
example of list being called at a template level:
{% choice "name" label='Choose the name', choices={{sortedList}}, export_to_template_context=True %}