Bundle Asset class
- class starfish.asset.BundleAsset(metadata_text: str, did: Optional[str] = None)
Bases:
starfish.asset.asset_base.AssetBase
,Generic
[starfish.types.BundleAsset
]Bundle asset can be used to hold many assets
- Parameters
- add(name: str, asset: starfish.asset.asset_base.AssetBase) None
Add an asset to the bundle. Any asset object
- Parameters
name (string) – name of the asset in the bundle
asset (
Asset
object) – asset to add to the bundle collection
- Returns
new bundle asset with the added asset
- static create(name: str, asset_list: Optional[any] = None, metadata: Optional[Any] = None) starfish.types.BundleAsset
Create a new empty BundleAsset
- Parameters
- Returns
a new BundleAsset
- Type