tamar-file-hub-client 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tamar-file-hub-client might be problematic. Click here for more details.
- file_hub_client/services/file/async_blob_service.py +1 -1
- file_hub_client/services/file/sync_blob_service.py +3 -3
- tamar_file_hub_client-0.2.3.dist-info/METADATA +704 -0
- {tamar_file_hub_client-0.2.2.dist-info → tamar_file_hub_client-0.2.3.dist-info}/RECORD +6 -6
- tamar_file_hub_client-0.2.2.dist-info/METADATA +0 -2640
- {tamar_file_hub_client-0.2.2.dist-info → tamar_file_hub_client-0.2.3.dist-info}/WHEEL +0 -0
- {tamar_file_hub_client-0.2.2.dist-info → tamar_file_hub_client-0.2.3.dist-info}/top_level.txt +0 -0
|
@@ -348,7 +348,7 @@ class AsyncBlobService(BaseFileService):
|
|
|
348
348
|
is_temporary: Optional[bool] = False,
|
|
349
349
|
expire_seconds: Optional[int] = None,
|
|
350
350
|
keep_original_filename: Optional[bool] = False,
|
|
351
|
-
forbid_overwrite: Optional[bool] =
|
|
351
|
+
forbid_overwrite: Optional[bool] = True,
|
|
352
352
|
request_id: Optional[str] = None,
|
|
353
353
|
**metadata
|
|
354
354
|
) -> UploadUrlResponse:
|
|
@@ -347,7 +347,7 @@ class SyncBlobService(BaseFileService):
|
|
|
347
347
|
is_temporary: Optional[bool] = False,
|
|
348
348
|
expire_seconds: Optional[int] = None,
|
|
349
349
|
keep_original_filename: Optional[bool] = False,
|
|
350
|
-
forbid_overwrite: Optional[bool] =
|
|
350
|
+
forbid_overwrite: Optional[bool] = True,
|
|
351
351
|
request_id: Optional[str] = None,
|
|
352
352
|
**metadata
|
|
353
353
|
) -> UploadUrlResponse:
|
|
@@ -364,7 +364,7 @@ class SyncBlobService(BaseFileService):
|
|
|
364
364
|
is_temporary: 是否为临时文件
|
|
365
365
|
expire_seconds: 过期秒数
|
|
366
366
|
keep_original_filename: 是否保留原始文件名(默认False)
|
|
367
|
-
forbid_overwrite: 防止覆盖同名文件(默认
|
|
367
|
+
forbid_overwrite: 防止覆盖同名文件(默认True)
|
|
368
368
|
request_id: 请求ID(可选,如果不提供则自动生成)
|
|
369
369
|
**metadata: 额外的元数据(如 x-org-id, x-user-id 等)
|
|
370
370
|
|
|
@@ -429,7 +429,7 @@ class SyncBlobService(BaseFileService):
|
|
|
429
429
|
is_temporary: 是否为临时文件
|
|
430
430
|
expire_seconds: 过期秒数
|
|
431
431
|
keep_original_filename: 是否保留原始文件名(默认False)
|
|
432
|
-
forbid_overwrite: 防止覆盖同名文件(默认
|
|
432
|
+
forbid_overwrite: 防止覆盖同名文件(默认True)
|
|
433
433
|
url: 要下载并上传的URL(可选)
|
|
434
434
|
file_name: 当使用url参数时指定的文件名(可选)
|
|
435
435
|
mime_type: MIME类型(可选,用于推断文件扩展名,特别适用于AI生成的字节数据)
|