emmi_data_management.checkpoint.types

Classes

CheckpointMetadata

Provider

Simple provider interface for checkpoint fetching (URI -> local path).

Module Contents

class emmi_data_management.checkpoint.types.CheckpointMetadata
uri: str
local_path: pathlib.Path
sha256: str | None
size: int | None
class emmi_data_management.checkpoint.types.Provider

Bases: Protocol

Simple provider interface for checkpoint fetching (URI -> local path).

scheme: str
can_handle(uri)
Parameters:

uri (str)

Return type:

bool

estimate_size(uri)
Parameters:

uri (str)

Return type:

int | None

fetch(uri, destination_dir, *, compute_hash=True)
Parameters:
Return type:

tuple[pathlib.Path, str | None]