googleapis / googleapis/google-cloud-python
Allow transfer_manager to upload/download file-like object
未关闭
api: storage
type: feature request
- 主要语言
- Python
- 星标
- 5.4k
- 派生
- 1.8k
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 122
描述
**Is your feature request related to a problem? Please describe.**
We'd like to have `download_chunks_concurrently` and `upload_chunks_concurrently` support file-like objects. That way, we can upload the model checkpoints directly from memory instead of writing them to disk first.
**Describe the solution you'd like**
Support passing a file-like object, such as `BytesIO`, to the `filename` in the function's argument.
**Describe alternatives you've considered**
Due to the lack of this functionality, I need to write my data in a local file and then upload the file to object storage.
**Additional context**
N/A
贡献指南
评估
这个 Issue 还没有评估数据。