Skip to content

comet_ml.artifacts.ArtifactAsset ¶

ArtifactAsset(
    remote: bool,
    logical_path: str,
    size: int,
    link: Optional[str],
    metadata: Optional[Dict[Any, Any]],
    asset_type: Optional[str],
    local_path_or_data: Optional[Any],
)

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

Attributes¶

asset_type property ¶

asset_type

Asset type, str

link

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

local_path_or_data property ¶

local_path_or_data

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

logical_path property ¶

logical_path

Asset relative logical_path, str or None

metadata property ¶

metadata

Asset metadata, dict

remote property ¶

remote

Is the asset a remote asset or not, boolean

size property ¶

size

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

Functions¶

Nov. 18, 2024