Hi everyone, is it possible to construct dagster ...
# ask-community
a
Hi everyone, is it possible to construct dagster assets programatically? E.g. something like for name in ["Germany", "US"]: @asset def name(): return name @repository def dagster_ops(): return ["Germany", "US"]
r
You can construct the assets in a loop or with a function, but you need to the parameters of
asset
to make sure they get different asset keys and to control inputs if any.
s
a
perfect. That is what I was looking for. Thank you very much!