Skip to content

feat/core python api#1561

Merged
SAKURA-CAT merged 13 commits intomainfrom
feat/core-python-api
Apr 21, 2026
Merged

feat/core python api#1561
SAKURA-CAT merged 13 commits intomainfrom
feat/core-python-api

Conversation

@Nexisato
Copy link
Copy Markdown
Contributor

@Nexisato Nexisato commented Apr 21, 2026

Description

#1547 拆分

  • SwanLab CorePython API 接入
  • 暂时对标 Legacy 的 API 层,servicesave 的分线程上传对象存储的逻辑未接入,但保留 uploadId 转换等工具函数

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly expands the SwanLab SDK's API coverage by implementing wrappers for experiment management, project operations, user settings, and self-hosted deployment configurations. It also introduces supporting utility functions and comprehensive type definitions for improved static analysis. Review feedback focuses on refining status code validation for API responses, optimizing filter processing using the walrus operator, correcting duplicate field definitions in TypedDicts, and improving type hint coverage for utility functions.

Comment thread swanlab/sdk/internal/core_python/api/experiment.py Outdated
Comment thread swanlab/sdk/internal/core_python/api/experiment.py Outdated
Comment thread swanlab/sdk/typings/core_python/api/project.py
Comment thread swanlab/sdk/typings/core_python/api/project.py Outdated
Comment thread swanlab/utils/experiment/__init__.py Outdated
@Nexisato Nexisato requested a review from SAKURA-CAT April 21, 2026 07:40
@Nexisato Nexisato self-assigned this Apr 21, 2026
Comment thread swanlab/sdk/typings/core_python/api/common.py Outdated
Comment thread swanlab/sdk/typings/core_python/api/experiment.py Outdated
Comment thread swanlab/sdk/typings/run/__init__.py
@SAKURA-CAT SAKURA-CAT merged commit 3ee4b21 into main Apr 21, 2026
18 checks passed
@SAKURA-CAT SAKURA-CAT deleted the feat/core-python-api branch April 21, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants