import core.pipelines as pipelines_functions from inspect import getmembers, isfunction def get_pipelines(): pipeline_names, pipeline_funcs = list( zip(*getmembers(pipelines_functions, isfunction)) ) pipeline_names = [ " ".join([n.capitalize() for n in name.split("_")]) for name in pipeline_names ] return pipeline_names, pipeline_funcs