"""Basic flows folder.""" import importlib __all__ = ['reserve_payouts'] def get_flow(flow_name): """Get flow by flow name. Args: flow_name (str): Name of the workflow. Returns: Flow: Flow object for the particular flow name. """ flow = importlib.import_module('.{}.flow'.format(flow_name), __name__) # look for the flow class, if it exists, otherwise fall back # on the flow module itself. return flow.Flow()