Skip to content

ArtifactAsset

ArtifactAsset(remote, logical_path, size, link, metadata, asset_type, local_path_or_data): represent local and remote assets added to an Artifact object but not yet uploaded

ArtifactAsset.init

__init__(remote, logical_path, size, link, metadata, asset_type,
    local_path_or_data)

ArtifactAsset.asset_type

asset_type()

Asset type, str

link()

Asset remote link if the asset is remote, str or None

ArtifactAsset.local_path_or_data

local_path_or_data()

Asset local path or in-memory file if the asset is non-remote, str, memory-file or None

ArtifactAsset.logical_path

logical_path()

Asset relative logical_path, str or None

ArtifactAsset.metadata

metadata()

Asset metadata, dict

ArtifactAsset.remote

remote()

Is the asset a remote asset or not, boolean

ArtifactAsset.size

size()

Asset size if the asset is a non-remote asset, int

Nov. 27, 2022