How to see the progress of files which is getting uploaded
@vinay-google 已经在做这个了。
开始于 2024年5月3日。
评估
这个 Issue 还没有评估数据。
描述
I'm have been uploading a zipped file to drive using python and I'm not able to figure out how to see the progress of file which is getting uploaded. Is there anyway to see the progress bar, i'm attaching the part of code where i'm uploading the file.
Thanks
# Call the Drive v3 API
file_metadata = {
"name": os.path.basename(zipped_file),
"mimeType": "application/x-zip-compressed",
"parents": [self.folder_id]
}
media = MediaFileUpload(zipped_file, mimetype="application/zip", resumable=True)
file = (
service.files()
.create(body=file_metadata, media_body=media, fields="id")
.execute()
)
logger.info(f'File with ID: "{file.get("id")}" has been uploaded.')
- Python version: Python 3.12.2
- OS: Windows
- 主要语言
- Python
- 星标
- 1.4k
- 派生
- 917
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleworkspace/python-samples 的其他 Issue
-
ايقاف البحث الأمن可能重新可做 @sqrrrl 于 400 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#2434 · 已指派 1 人 ·
-
Slow Uploads using Google Drive API with Python可能重新可做 @sqrrrl 于 740 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1852 · 1 条评论 · 已指派 1 人 ·
-
403 error from google after a few successful runs of my code可能重新可做 @vinay-google 于 912 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1424 · 已指派 1 人 ·
-
Phyton Samples可能重新可做 @PierrickVoulet 于 975 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1279 · 已指派 1 人 ·
-
DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials可能重新可做 @sqrrrl 于 1017 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1278 · 1 条评论 · 已指派 1 人 ·
查看 googleworkspace/python-samples 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
canonical/paas-charm#407 · 1 条评论 ·
维护者通常 5 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
维护者通常 1 天内回复
-
enhancement tooling
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
`read_nexus` entry point points to a function that no longer exists可能已有人在做 @RubelMozumder 今天认领。 未关闭annotator bug
难度 1/5 1 小时以内 新手友好度 88/100
FAIRmat-NFDI/pynxtools#876 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retrying可能已有人在做 @yipinghuang1991 今天认领。 未关闭comp/agent P2 type/bug
难度 2/5 1-3 小时 新手友好度 82/100
NousResearch/hermes-agent#156837 ·
维护者通常 1 天内回复