That sounds like Gooey: https://github.com/chriskiehl/Gooey, which creates GUIs for Python cli apps.
Autogenerated based on the args, but configurable and the widgets and menus can be defined in JSON.
Autogenerated based on the args, but configurable and the widgets and menus can be defined in JSON.
Idea would be to define UI structure that outputs (and executes) essentially a string (command) to run.