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 於 1018 天前認領,目前沒有進行中的 PR。 未關閉
googleworkspace/python-samples#1278 · 1 則留言 · 已指派 1 人 ·
查看 googleworkspace/python-samples 的全部 Issue
相似的 Issue
-
area: ci bug good first issue help wanted
難度 2/5 1-3 小時 新手友好度 84/100
hffgzktbcc-blip/ounce-core#484 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 66/100
ranxianglei/billion-context#7063 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
-
needs-triage
難度 2/5 1-3 小時 新手友好度 84/100
MakazhanAlpamys/Soup#2971 ·
維護者通常 1 天內回覆