Skip to content

feat(storage): 添加阿里云OSS存储支持#4953

Open
zyfjrx wants to merge 1 commit intoPaddlePaddle:release/3.4from
zyfjrx:support-aliyun-oss
Open

feat(storage): 添加阿里云OSS存储支持#4953
zyfjrx wants to merge 1 commit intoPaddlePaddle:release/3.4from
zyfjrx:support-aliyun-oss

Conversation

@zyfjrx
Copy link

@zyfjrx zyfjrx commented Jan 29, 2026

  • 在导出列表中增加OSSConfig和OSS类
  • 新增OSSConfig配置模型,包含endpoint、access_key等字段
  • 扩展FileStorageConfig联合类型以支持OSS配置
  • 实现OSS存储类,继承Storage基类
  • 添加OSS初始化方法,创建认证和Bucket对象
  • 实现get、set、delete、get_url等存储操作方法
  • 添加私有_get_full_key方法处理键前缀逻辑
  • 在create_storage工厂函数中添加OSS实例创建分支
  • 使用装饰器class_requires_deps确保oss2依赖可用

- 在导出列表中增加OSSConfig和OSS类
- 新增OSSConfig配置模型,包含endpoint、access_key等字段
- 扩展FileStorageConfig联合类型以支持OSS配置
- 实现OSS存储类,继承Storage基类
- 添加OSS初始化方法,创建认证和Bucket对象
- 实现get、set、delete、get_url等存储操作方法
- 添加私有_get_full_key方法处理键前缀逻辑
- 在create_storage工厂函数中添加OSS实例创建分支
- 使用装饰器class_requires_deps确保oss2依赖可用
@paddle-bot
Copy link

paddle-bot bot commented Jan 29, 2026

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Jan 29, 2026

CLA assistant check
All committers have signed the CLA.

@paddle-bot paddle-bot bot added the contributor External developers label Jan 29, 2026
@luotao1
Copy link
Collaborator

luotao1 commented Feb 3, 2026

Please submit to the develop branch at first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants