swanlab breaking changes
Updated December 4, 2026
On this page
Latest version 0.10.6, released November 18, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
swanlab 0.10.6 breaking changes
- Removed
swanlab.sdk.internal.run.transforms.video.VideoDataType
swanlab.sdk.internal.run.transforms.video.VideoDataType was removed in swanlab 0.10.6 pypi.org - Signature changed
swanlab.Run.log_video
Was def log_video(self, *, key: str, data: VideoDatasType, caption: CaptionsType = None, step: Optional[int] = None); now def log_video(self, *, key: str, data: VideoDatasType, caption: CaptionsType = None, step: Optional[int] = None, fps... pypi.org - Signature changed
swanlab.Video.__init__
Was def __init__(self, data_or_path: VideoDataType, caption: CaptionType = None); now def __init__(self, data_or_path: VideoInput, caption: CaptionType = None, fps: Optional[int] = None, format: Optional[VideoFormat] = None). pypi.org - Signature changed
swanlab.Video.caption
Was caption: Optional[str]; now caption. pypi.org - Signature changed
swanlab.Video.format
Was format: str; now format: VideoFormat. pypi.org
swanlab 0.10.5 breaking changes
- Signature changed
swanlab.api.metric.Metric.__init__
Was def __init__(self, ctx: ApiClientContext, *, project_id: str, run_id: str, created_at: int, key: Optional[str] = '', sample: int = 1000, log_offset: Optional[int] = 0, log_level: ApiMetricLogLevelLiteral = 'INFO', metric_type: str =... pypi.org - Signature changed
swanlab.api.metric.Metrics.__init__
Was def __init__(self, ctx: ApiClientContext, *, project_id: str, run_id: str, keys: List[str], metric_type: ApiMetricKeyTypeLiteral, sample: int = 1500, ignore_timestamp: bool = False, media_step: Optional[int] = None, all: bool = False... pypi.org - Signature changed
swanlab.cli.api.helper.format_output
Was def format_output(resp: ApiResponseType) -> bytes; now def format_output(resp: ApiResponseType, *, echo: bool = True) -> bytes. pypi.org - Signature changed
swanlab.cli.api.helper.save_output
Was def save_output(content: bytes, name: Optional[str] = None, fmt: _SaveFormatEnum = _SaveFormatEnum.JSON) -> None; now def save_output(content: bytes, name: Optional[str] = None, fmt: _SaveFormatEnum = _SaveFormatEnum.JSON) -> bool. pypi.org - Signature changed
swanlab.proto.swanlab.record.v1.record_pb2.Record.__init__
Was def __init__(self, num: _Optional[int] = ..., timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., start: _Optional[_Union[_run_pb2.StartRecord, _Mapping]] = ..., finish... pypi.org - Signature changed
swanlab.sdk.internal.context.TransformData.build_data_record
Was @classmethod def build_data_record(cls, *, key: str, step: int, timestamp: Timestamp, data: Any) -> Union[MediaRecord, ScalarRecord]; now @classmethod def build_data_record(cls, *, key: str, step: int, timestamp: Timestamp, data: Any)... pypi.org - Signature changed
swanlab.sdk.internal.core_python.api.upload.UploadMetricPayload.metrics
Was metrics: Union[UploadScalarBatch, UploadMediaBatch, UploadLogBatch]; now metrics: Union[UploadScalarBatch, UploadMediaBatch, UploadLogBatch, UploadHistogramBatch]. pypi.org - Signature changed
swanlab.sdk.internal.core_python.metrics.RunMetrics.__init__
Was def __init__(self, _metrics: Dict[str, Union[ScalarMetric, MediaMetric]] = dict()) -> None; now def __init__(self, _metrics: Dict[str, Union[ScalarMetric, MediaMetric, HistogramMetric]] = dict()) -> None. pypi.org - Signature changed
swanlab.sdk.internal.core_python.metrics.RunMetrics.get
Was def get(self, key: str) -> Optional[Union[ScalarMetric, MediaMetric]]; now def get(self, key: str) -> Optional[Union[ScalarMetric, MediaMetric, HistogramMetric]]. pypi.org - Signature changed
swanlab.sdk.internal.core_python.pkg.builder.build_auto_column
Was def build_auto_column(ctx: CoreContext, data_record: Union[ScalarRecord, MediaRecord]) -> ColumnRecord; now def build_auto_column(ctx: CoreContext, data_record: Union[ScalarRecord, MediaRecord, HistogramRecord]) -> ColumnRecord. pypi.org
And 1 more in this version. Sign up to see every change
swanlab 0.10.4 breaking changes
- Signature changed
swanlab.init
Was def init(*, reinit: Optional[bool] = None, log_dir: Optional[str] = None, mode: Optional[ModeType] = None, workspace: Optional[str] = None, project: Optional[str] = None, public: Optional[bool] = None, name: Optional[str] = None... pypi.org - Signature changed
swanlab.proto.swanlab.grpc.core.v1.core_pb2.DeliverRunStartResponse.__init__
Was def __init__(self, success: bool = ..., message: _Optional[str] = ..., run: _Optional[_Union[_run_pb2.StartRecord, _Mapping]] = ..., path: _Optional[str] = ..., name: _Optional[str] = ..., global_step: _Optional[int] =... pypi.org - Signature changed
swanlab.sdk.internal.core_python.api.experiment.create_or_resume_experiment
Was def create_or_resume_experiment(username: str, project: str, *, name: str, resume: ResumeType, run_id: Optional[str] = None, color: str, description: Optional[str], job_type: Optional[str], group: Optional[str], tags... pypi.org - Signature changed
swanlab.sdk.internal.core_python.api.experiment.get_experiment_summary
Was def get_experiment_summary(project_id: str, experiment_id: str, created_at: Union[int, str]) -> ResumeExperimentSummaryType; now def get_experiment_summary(project_id: str, experiment_id: str, created_at: Union[int, str], *, retries... pypi.org - Signature changed
swanlab.sdk.internal.core_python.api.project.get_or_create_project
Was def get_or_create_project(*, username: Optional[str], name: str, public: bool) -> ProjectType; now def get_or_create_project(*, username: Optional[str], name: str, public: bool, retries: Optional[int] = None) -> ProjectType. pypi.org - Signature changed
swanlab.sdk.internal.core_python.utils.api_create_or_resume_experiment
Was def create_or_resume_experiment(username: str, project: str, *, name: str, resume: ResumeType, run_id: Optional[str] = None, color: str, description: Optional[str], job_type: Optional[str], group: Optional[str], tags... pypi.org - Signature changed
swanlab.sdk.internal.core_python.utils.get_or_create_project
Was def get_or_create_project(*, username: Optional[str], name: str, public: bool) -> ProjectType; now def get_or_create_project(*, username: Optional[str], name: str, public: bool, retries: Optional[int] = None) -> ProjectType. pypi.org - Signature changed
swanlab.sdk.internal.core_python.utils.prepare_experiment_start
Was def prepare_experiment_start(record: StartRecord) -> PrepareExperimentStartResult; now def prepare_experiment_start(record: StartRecord, *, retries: Optional[int] = None) -> PrepareExperimentStartResult. pypi.org - Signature changed
swanlab.sdk.internal.pkg.client.bootstrap.login_by_api_key
Was def login_by_api_key(base_url: str, api_key: str, timeout: int = 20) -> LoginResponse; now def login_by_api_key(base_url: str, api_key: str, timeout: int = 20, retries: Optional[int] = STARTUP_RETRIES) -> LoginResponse. pypi.org - Signature changed
swanlab.sdk.internal.pkg.client.session.create
Was def create(timeout: int = 60, default_retry: int = 5) -> SessionWithRetry; now def create(timeout: int = 60, default_retry: Optional[int] = None) -> SessionWithRetry. pypi.org
swanlab 0.10.3 breaking changes
- Removed
swanlab.sdk.internal.core_python.api.upload.safe
swanlab.sdk.internal.core_python.api.upload.safe was removed in swanlab 0.10.3 pypi.org - Removed
swanlab.sdk.internal.core_python.transport.buffer
swanlab.sdk.internal.core_python.transport.buffer was removed in swanlab 0.10.3 pypi.org - Removed
swanlab.sdk.internal.core_python.transport.helper
swanlab.sdk.internal.core_python.transport.helper was removed in swanlab 0.10.3 pypi.org - Removed
swanlab.sdk.internal.core_python.transport.sender.HttpRecordSender.resolve_save_source
HttpRecordSender.resolve_save_source was removed in swanlab 0.10.3 pypi.org - Removed
swanlab.sdk.internal.core_python.transport.thread
swanlab.sdk.internal.core_python.transport.thread was removed in swanlab 0.10.3 pypi.org - Renamed
swanlab.api.experiment.parse_timestamp_s
Use swanlab.api.experiment.parse_resp_timestamp_s instead. pypi.org - Renamed
swanlab.sdk.internal.core_python.api.experiment.parse_timestamp_s
Use swanlab.sdk.internal.core_python.api.experiment.parse_resp_timestamp_s instead. pypi.org - Renamed
swanlab.sdk.internal.core_python.transport.buffer.RecordBuffer
Use swanlab.sdk.internal.core_python.transport.worker.buffer.RecordBuffer instead. pypi.org - Renamed
swanlab.sdk.internal.core_python.transport.helper.compute_md5
Use swanlab.sdk.internal.core_python.transport.sender.utils.compute_md5 instead. pypi.org - Renamed
swanlab.sdk.internal.core_python.transport.helper.generate_chunks
Use swanlab.sdk.internal.core_python.transport.dispatch.generate_chunks instead. pypi.org
And 19 more in this version. Sign up to see every change
swanlab 0.10.2 breaking changes
- Removed
swanlab.converter.wb.local_converter.vendor
swanlab.converter.wb.local_converter.vendor was removed in swanlab 0.10.2 pypi.org - Removed
swanlab.sdk.internal.probe_python.fs
swanlab.sdk.internal.probe_python.fs was removed in swanlab 0.10.2 pypi.org - Signature changed
swanlab.proto.swanlab.settings.core.v1.core_pb2.CoreSettings.__init__
Was def __init__(self, run_id: _Optional[str] = ..., run_dir: _Optional[str] = ..., section_rule: _Optional[int] = ..., record_batch: _Optional[int] = ..., record_interval: _Optional[float] = ..., save_size: _Optional[int] =... pypi.org - Signature changed
swanlab.proto.swanlab.settings.probe.v1.probe_pb2.ProbeSettings.__init__
Was def __init__(self, run_id: _Optional[str] = ..., run_dir: _Optional[str] = ..., global_system_step: _Optional[int] = ..., hardware: bool = ..., runtime: bool = ..., requirements: bool = ..., conda: bool = ..., git: bool = ..., swanlab... pypi.org - Signature changed
swanlab.sdk.internal.bus.ConfigEvent.__init__
Was def __init__(self, path: Path, timestamp: Timestamp) -> None; now def __init__(self, path: Path, timestamp: Timestamp, content: Dict[str, Any]) -> None. pypi.org - Signature changed
swanlab.sdk.internal.context.transformer.MediaItem.__init__
Was def __init__(self, filename: _Optional[str] = ..., sha256: _Optional[str] = ..., size: _Optional[int] = ..., caption: _Optional[str] = ...) -> None; now def __init__(self, filename: _Optional[str] = ..., sha256: _Optional[str] =... pypi.org - Signature changed
swanlab.sdk.internal.context.TransformMedia.transform
Was def transform(self, *, step: int, path: Path) -> MediaItem; now def transform(self, *, step: int, path: Optional[Path]) -> MediaItem. pypi.org - Signature changed
swanlab.sdk.internal.core_python.context.CoreConfig.__init__
Was def __init__(self, run_id: str, run_dir: Path, section_rule: int, record_batch: int, record_interval: float, save_size: int, save_split: int, save_part: int, save_batch: int) -> None; now def __init__(self, run_id: str, run_dir: Path... pypi.org - Signature changed
swanlab.sdk.internal.core_python.store.DataStoreWriter
Was class DataStoreWriter; now class DataStoreWriter(DataStoreWriterProtocol). pypi.org - Signature changed
swanlab.sdk.internal.core_python.watcher.FileWatcher
Was class FileWatcher; now class FileWatcher(FileWatcherProtocol). pypi.org
And 6 more in this version. Sign up to see every change
swanlab 0.10.1 breaking changes
- Removed
swanlab.api.metric.safe
swanlab.api.metric.safe was removed in swanlab 0.10.1 pypi.org - Removed
swanlab.api.utils
swanlab.api.utils was removed in swanlab 0.10.1 pypi.org - Renamed
swanlab.api.metric.ApiMediaItemDataType
Use swanlab.api.helper.request.ApiMediaItemDataType instead. pypi.org - Renamed
swanlab.api.metric.Client
Use swanlab.api.helper.extractor.Client instead. pypi.org - Signature changed
swanlab.api.experiment.Experiment.metrics
Was def metrics(self, keys: List[str], sample: int = 1500, ignore_timestamp: bool = False, all: bool = False, range_query: Optional[Union[Dict[str, Any], RangeQuery]] = None) -> Dict[str, Any]; now def metrics(self, keys: List[str]... pypi.org - Signature changed
swanlab.api.experiment.RangeQuery.end
Was end: Optional[int]; now end: Optional[float]. pypi.org - Signature changed
swanlab.api.experiment.RangeQuery.start
Was start: Optional[int]; now start: Optional[float]. pypi.org - Signature changed
swanlab.api.experiment.RangeQuery.type
Was type: Literal['step', 'timestamp']; now type: Literal['step', 'timestamp', 'custom']. pypi.org - Signature changed
swanlab.api.metric.Metric.__init__
Was def __init__(self, ctx: ApiClientContext, *, project_id: str, run_id: str, created_at: int, key: Optional[str] = '', sample: int = 1000, log_offset: Optional[int] = 0, log_level: ApiMetricLogLevelLiteral = 'INFO', metric_type: str =... pypi.org - Signature changed
swanlab.api.metric.Metrics.__init__
Was def __init__(self, ctx: ApiClientContext, *, project_id: str, run_id: str, keys: List[str], metric_type: ApiMetricKeyTypeLiteral, sample: int = 1500, ignore_timestamp: bool = False, media_step: Optional[int] = None, all: bool = False... pypi.org
And 2 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.