Skip to content

refactor: 使用 boto3 统一访问 OSS 和 S3 - #24

Merged
iven merged 1 commit into
mainfrom
iven/chair
Feb 9, 2026
Merged

refactor: 使用 boto3 统一访问 OSS 和 S3#24
iven merged 1 commit into
mainfrom
iven/chair

Conversation

@iven

@iven iven commented Feb 9, 2026

Copy link
Copy Markdown
Contributor
  • 删除 OSSClient 和 S3Client,创建统一的 CloudClient
  • 使用 boto3 的 S3 兼容 API 访问阿里云 OSS
  • 移除 oss2 依赖,统一使用 boto3
  • 删除不必要的 create_cloud_client 工厂函数
  • OSS endpoint 自动转换为 S3 兼容格式(添加 s3. 前缀)

- 删除 OSSClient 和 S3Client,创建统一的 CloudClient
- 使用 boto3 的 S3 兼容 API 访问阿里云 OSS
- 移除 oss2 依赖,统一使用 boto3
- 删除不必要的 create_cloud_client 工厂函数
- OSS endpoint 自动转换为 S3 兼容格式(添加 s3. 前缀)

代码减少 332 行(-70%),所有测试通过。
@iven
iven enabled auto-merge February 9, 2026 08:02
@iven
iven added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit de0aa62 Feb 9, 2026
2 checks passed
@iven
iven deleted the iven/chair branch February 9, 2026 08:03
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.

1 participant