prj.get_data and prj.get_model for artifact-based assets, and the lower-level prj.asset.consume_* methods for external references. Listing methods enumerate the assets available on the current branch.
Methods
- .get_data: Fetch the latest instance of a data asset in a flow.
- .get_model: Fetch the latest instance of a model asset in a flow.
- .consume_data_asset: Consume an external data asset by reference.
- .consume_model_asset: Consume an external model asset by reference.
- .list_data_assets: List data assets, optionally filtered by tags.
- .list_model_assets: List model assets, optionally filtered by tags.
Choosing a consumption method
Use theget_* methods when the asset was registered from a flow artifact; they resolve the reference to the artifact automatically and register the calling task as a consumer for lineage tracking. Use the consume_* methods for external assets; they return a reference containing the blobs list that you load manually.
Every read is branch-scoped: deployed flows read from their Git branch, and local runs read from your user namespace unless [dev-assets] redirects reads to another branch. For the resolution rules, see Asset branch resolution.