Apiworkbench
codegen
Generate Python that builds anylumino widgets from an evaluated OpenUI tree.
attributeDOCSTRING= '"""Generated by the anylumino workbench from an OpenUI program."""\n\n'attributeIMPORTS= {'al': 'import anylumino as al\n', 'ax': 'import anylumino.astryx as ax\n', 'go': 'import plotly.graph_objects as go\n'}attributeCLASS= '\n\nclass UI(ax.Stack):\n """The generated widget for ``app``, with one attribute per OpenUI statement."""\n\n def __init__(self, app):\n super().__init__([])\n self.app = app\n'attributeRESERVED= {'app', *(name for name in dir(ax.Stack) if not name.startswith('_'))}