Skip to content

comet_ml.artifacts.ArtifactAsset ¶

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

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: str

Asset type, str

id property ¶

id: Optional[str]
link: str

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

local_path_or_data property ¶

local_path_or_data: Any

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

logical_path property ¶

logical_path: str

Asset relative logical_path, str or None

metadata property ¶

metadata: Dict[str, Any]

Asset metadata, dict

remote property ¶

remote: bool

Is the asset a remote asset or not, boolean

size property ¶

size: int

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

Functions¶

Nov. 13, 2025