Hi all, I am trying to “dynamically” create a Meta...
# ask-metaflow
b
Hi all, I am trying to “dynamically” create a Metaflow flow in code, rather than defining all the steps by hand as methods in the Flow class. Is there a way to dynamically define Metaflow steps in code, without explicitly creating an
@step
in the source code? Or alternatively is this not a good idea? I’ll post a solution I came up with that comes close to achieving this goal, but still requires defining dummy
@step
methods in the correct order. Ideally I would like to eliminate these and rely purely on dynamic step creation. The motivation for this is I would like to be able to write reusable mixin classes to be used across multiple flows. I could then create multiple flows, each stacking together a few of these these mixins together like legos.