tamar-file-hub-client 0.0.7__py3-none-any.whl → 0.0.9__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.
- file_hub_client/services/file/async_blob_service.py +82 -82
- file_hub_client/services/file/sync_blob_service.py +82 -82
- file_hub_client/services/taple/async_taple_service.py +2291 -2281
- file_hub_client/services/taple/sync_taple_service.py +14 -4
- {tamar_file_hub_client-0.0.7.dist-info → tamar_file_hub_client-0.0.9.dist-info}/METADATA +1 -1
- {tamar_file_hub_client-0.0.7.dist-info → tamar_file_hub_client-0.0.9.dist-info}/RECORD +8 -8
- {tamar_file_hub_client-0.0.7.dist-info → tamar_file_hub_client-0.0.9.dist-info}/WHEEL +0 -0
- {tamar_file_hub_client-0.0.7.dist-info → tamar_file_hub_client-0.0.9.dist-info}/top_level.txt +0 -0
@@ -1487,8 +1487,8 @@ class SyncTapleService(BaseTapleService):
|
|
1487
1487
|
self,
|
1488
1488
|
sheet_id: str,
|
1489
1489
|
operations: List[Any],
|
1490
|
-
sheet_version: int,
|
1491
|
-
client_id: str,
|
1490
|
+
sheet_version: Optional[int] = None,
|
1491
|
+
client_id: Optional[str] = None,
|
1492
1492
|
*,
|
1493
1493
|
idempotency_key: Optional[str] = None,
|
1494
1494
|
request_id: Optional[str] = None,
|
@@ -1500,8 +1500,8 @@ class SyncTapleService(BaseTapleService):
|
|
1500
1500
|
Args:
|
1501
1501
|
sheet_id: Sheet ID
|
1502
1502
|
operations: List of operations
|
1503
|
-
sheet_version: Current version for optimistic locking
|
1504
|
-
client_id: Client ID
|
1503
|
+
sheet_version: Current version for optimistic locking (optional, auto-fetched if not provided)
|
1504
|
+
client_id: Client ID (optional, auto-generated if not provided)
|
1505
1505
|
idempotency_key: 幂等性键(可选)
|
1506
1506
|
request_id: 请求ID(可选,如果不提供则自动生成)
|
1507
1507
|
**metadata: Extra metadata
|
@@ -1510,6 +1510,16 @@ class SyncTapleService(BaseTapleService):
|
|
1510
1510
|
BatchEditSheetResponse
|
1511
1511
|
"""
|
1512
1512
|
from ...rpc.gen import taple_service_pb2, taple_service_pb2_grpc
|
1513
|
+
import uuid
|
1514
|
+
|
1515
|
+
# 如果没有提供sheet_version,自动获取
|
1516
|
+
if sheet_version is None:
|
1517
|
+
version_result = self.get_sheet_version(sheet_id=sheet_id, **metadata)
|
1518
|
+
sheet_version = version_result.version
|
1519
|
+
|
1520
|
+
# 如果没有提供client_id,自动生成
|
1521
|
+
if client_id is None:
|
1522
|
+
client_id = str(uuid.uuid4())
|
1513
1523
|
|
1514
1524
|
stub = self.client.get_stub(taple_service_pb2_grpc.TapleServiceStub)
|
1515
1525
|
|
@@ -29,19 +29,19 @@ file_hub_client/schemas/folder.py,sha256=D7UFsLCou-7CCXCQvuRObaBQEGmETsm1cgGOG1c
|
|
29
29
|
file_hub_client/schemas/taple.py,sha256=qoH458xMAdYg8_jKdYqHJy5-gZ1ZFzOAkSPFROQuhQI,18172
|
30
30
|
file_hub_client/services/__init__.py,sha256=yh5mir0dKB_LtJMk2hTpQI9WSlguaxtVD2KomMnzxdM,514
|
31
31
|
file_hub_client/services/file/__init__.py,sha256=aJygo_AzYk5NN-ezp-a9YlugJ82wVIP9e5e54fl0UsI,342
|
32
|
-
file_hub_client/services/file/async_blob_service.py,sha256=
|
32
|
+
file_hub_client/services/file/async_blob_service.py,sha256=ccpEBKf5GOE3RxR9hSWcCn5SpQi1oTVxMpcIV4uUHt8,20478
|
33
33
|
file_hub_client/services/file/async_file_service.py,sha256=QxVfwPoJe_oj8t7EOLHMQF3PQf4E1-HctQR7yvY9D3g,8585
|
34
34
|
file_hub_client/services/file/base_file_service.py,sha256=wTxplrTk9klfwIHOPfTL0TQd6gX4nEmkYtIhpiZ3GVo,4791
|
35
|
-
file_hub_client/services/file/sync_blob_service.py,sha256=
|
35
|
+
file_hub_client/services/file/sync_blob_service.py,sha256=WPfpuQ5-3b5crmgjqdxsGKqz5SvX_P0Iy_8TfO2X6BU,20259
|
36
36
|
file_hub_client/services/file/sync_file_service.py,sha256=i1pLCcGNWMlWQfAW4dlhLsEiV3oc1jXKmKax35k0CGw,8439
|
37
37
|
file_hub_client/services/folder/__init__.py,sha256=vGbMOlNiEBdnWZB1xE74RJtoroI28hKHCWfQV1GqKQc,210
|
38
38
|
file_hub_client/services/folder/async_folder_service.py,sha256=uFEmtW8EXYvaKYT2JCitWbdTGR1EtHlx_eBN5P3JUZg,7293
|
39
39
|
file_hub_client/services/folder/sync_folder_service.py,sha256=T00k1nD0txjOFQXxeIbF_ZOkNUhsBF45sDxyaDk8rf8,7167
|
40
40
|
file_hub_client/services/taple/__init__.py,sha256=AQgYVRXgISye8cRd0J5QEK-5AoepeAw5726esFzs2Gg,199
|
41
|
-
file_hub_client/services/taple/async_taple_service.py,sha256=
|
41
|
+
file_hub_client/services/taple/async_taple_service.py,sha256=yDWJyeEbK0DD2CgtVnl1WV30D6qpf7eqi_E2ujXrsvA,90526
|
42
42
|
file_hub_client/services/taple/base_taple_service.py,sha256=Ker16Lk7TWaRJ6z4OSgR3kMcAQeU3bJawRve8VmflPs,14573
|
43
43
|
file_hub_client/services/taple/idempotent_taple_mixin.py,sha256=lZeMF59dU-KVnc2p7epGrclidCv0nYg8TP_qVUezJ48,4295
|
44
|
-
file_hub_client/services/taple/sync_taple_service.py,sha256=
|
44
|
+
file_hub_client/services/taple/sync_taple_service.py,sha256=qXCCm-JwFD0Xxmn4a6BUnfJADe_CLey3H9PDDd4STIk,86768
|
45
45
|
file_hub_client/utils/__init__.py,sha256=0WS1R9VEPEqIN6_ksHEbO6Eu0G1Ps6oNTuOtoDMdDMM,1832
|
46
46
|
file_hub_client/utils/converter.py,sha256=TX69Bqk-PwNdv2hYQ07_tW6HQnQycHcJkGeRnskeF3A,3734
|
47
47
|
file_hub_client/utils/download_helper.py,sha256=Mc8TQSWjHxIglJMkKlGy9r3LZe8e_Mwe6D3sfn6IOnY,13338
|
@@ -51,7 +51,7 @@ file_hub_client/utils/logging.py,sha256=IxcvWkA0G9s9BMiXIeFAdJX5G-Lc5-JFlS2yxOX1
|
|
51
51
|
file_hub_client/utils/retry.py,sha256=A2MBdJCEY-Ks0guq8dd5wXX22sD27N30Qy3nQIW1B_s,18019
|
52
52
|
file_hub_client/utils/smart_retry.py,sha256=RjBhyG6SNDfMXxNxKU_qayWDD6Ihp7ow6_BPjhgflM0,16465
|
53
53
|
file_hub_client/utils/upload_helper.py,sha256=gEtn9OXVJiGUpVev_fqrDnRQ6AFiiP9goLzFrVpqXmU,22569
|
54
|
-
tamar_file_hub_client-0.0.
|
55
|
-
tamar_file_hub_client-0.0.
|
56
|
-
tamar_file_hub_client-0.0.
|
57
|
-
tamar_file_hub_client-0.0.
|
54
|
+
tamar_file_hub_client-0.0.9.dist-info/METADATA,sha256=9YI1K_AMsIfOeiwYrIeSAwB5NvXzrQlbT7sPCXDTygw,64873
|
55
|
+
tamar_file_hub_client-0.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
56
|
+
tamar_file_hub_client-0.0.9.dist-info/top_level.txt,sha256=9wcR7hyAJQdJg_kuH6WR3nmpJ8O-j8aJNK8f_kcFy6U,16
|
57
|
+
tamar_file_hub_client-0.0.9.dist-info/RECORD,,
|
File without changes
|
{tamar_file_hub_client-0.0.7.dist-info → tamar_file_hub_client-0.0.9.dist-info}/top_level.txt
RENAMED
File without changes
|