tamar-file-hub-client 0.0.9__py3-none-any.whl → 0.0.11__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/rpc/gen/file_service_pb2.py +28 -28
- file_hub_client/rpc/gen/taple_service_pb2.py +174 -174
- file_hub_client/rpc/protos/file_service.proto +1 -0
- file_hub_client/rpc/protos/taple_service.proto +4 -4
- file_hub_client/schemas/taple.py +412 -412
- file_hub_client/services/file/async_blob_service.py +3 -1
- file_hub_client/services/file/sync_blob_service.py +3 -1
- file_hub_client/services/taple/async_taple_service.py +2285 -2291
- file_hub_client/services/taple/base_taple_service.py +367 -352
- file_hub_client/services/taple/sync_taple_service.py +11 -17
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/METADATA +1 -1
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/RECORD +14 -14
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/WHEEL +0 -0
- {tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/top_level.txt +0 -0
@@ -1849,7 +1849,7 @@ class SyncTapleService(BaseTapleService):
|
|
1849
1849
|
*,
|
1850
1850
|
filter_criteria: Optional[Dict[str, Any]] = None,
|
1851
1851
|
sort_criteria: Optional[Dict[str, Any]] = None,
|
1852
|
-
visible_columns: Optional[
|
1852
|
+
visible_columns: Optional[Dict[str, bool]] = None,
|
1853
1853
|
group_criteria: Optional[Dict[str, Any]] = None,
|
1854
1854
|
is_hidden: bool = False,
|
1855
1855
|
is_default: bool = False,
|
@@ -1867,7 +1867,7 @@ class SyncTapleService(BaseTapleService):
|
|
1867
1867
|
view_type: 视图类型(table/gantt/calendar/kanban/gallery等)
|
1868
1868
|
filter_criteria: 过滤条件(可选)
|
1869
1869
|
sort_criteria: 排序条件(可选)
|
1870
|
-
visible_columns:
|
1870
|
+
visible_columns: 可见列配置(可选),字典格式 {column_id: bool},值为True表示显示该列
|
1871
1871
|
group_criteria: 分组条件(可选)
|
1872
1872
|
is_hidden: 是否隐藏(默认False)
|
1873
1873
|
is_default: 是否默认视图(默认False)
|
@@ -1888,12 +1888,13 @@ class SyncTapleService(BaseTapleService):
|
|
1888
1888
|
sheet_id=sheet_id,
|
1889
1889
|
view_name=name,
|
1890
1890
|
view_type=view_type,
|
1891
|
-
visible_columns=visible_columns or [],
|
1892
1891
|
is_hidden=is_hidden,
|
1893
1892
|
is_default=is_default,
|
1894
1893
|
)
|
1895
1894
|
|
1896
1895
|
# 处理可选的 JSON 字段
|
1896
|
+
if visible_columns:
|
1897
|
+
request.visible_columns.CopyFrom(self._convert_dict_to_struct(visible_columns))
|
1897
1898
|
if filter_criteria:
|
1898
1899
|
request.filter_criteria.CopyFrom(self._convert_dict_to_struct(filter_criteria))
|
1899
1900
|
if sort_criteria:
|
@@ -2001,7 +2002,7 @@ class SyncTapleService(BaseTapleService):
|
|
2001
2002
|
name: Optional[str] = None,
|
2002
2003
|
filter_criteria: Optional[Dict[str, Any]] = None,
|
2003
2004
|
sort_criteria: Optional[Dict[str, Any]] = None,
|
2004
|
-
visible_columns: Optional[
|
2005
|
+
visible_columns: Optional[Dict[str, bool]] = None,
|
2005
2006
|
group_criteria: Optional[Dict[str, Any]] = None,
|
2006
2007
|
is_hidden: Optional[bool] = None,
|
2007
2008
|
is_default: Optional[bool] = None,
|
@@ -2018,7 +2019,7 @@ class SyncTapleService(BaseTapleService):
|
|
2018
2019
|
name: 新名称(可选)
|
2019
2020
|
filter_criteria: 过滤条件(可选)
|
2020
2021
|
sort_criteria: 排序条件(可选)
|
2021
|
-
visible_columns:
|
2022
|
+
visible_columns: 可见列配置(可选),字典格式 {column_id: bool},传入空字典清空可见列设置
|
2022
2023
|
group_criteria: 分组条件(可选)
|
2023
2024
|
is_hidden: 是否隐藏(可选)
|
2024
2025
|
is_default: 是否默认视图(可选)
|
@@ -2047,13 +2048,7 @@ class SyncTapleService(BaseTapleService):
|
|
2047
2048
|
if sort_criteria is not None:
|
2048
2049
|
request.sort_criteria.CopyFrom(self._convert_dict_to_struct(sort_criteria))
|
2049
2050
|
if visible_columns is not None:
|
2050
|
-
|
2051
|
-
list_value = ListValue()
|
2052
|
-
for col in visible_columns:
|
2053
|
-
value = Value()
|
2054
|
-
value.string_value = str(col)
|
2055
|
-
list_value.values.append(value)
|
2056
|
-
request.visible_columns.CopyFrom(list_value)
|
2051
|
+
request.visible_columns.CopyFrom(self._convert_dict_to_struct(visible_columns))
|
2057
2052
|
if group_criteria is not None:
|
2058
2053
|
request.group_criteria.CopyFrom(self._convert_dict_to_struct(group_criteria))
|
2059
2054
|
|
@@ -2146,9 +2141,7 @@ class SyncTapleService(BaseTapleService):
|
|
2146
2141
|
from google.protobuf.json_format import MessageToDict
|
2147
2142
|
|
2148
2143
|
# 处理 visible_columns 的转换
|
2149
|
-
visible_columns = None
|
2150
|
-
if proto_view.visible_columns:
|
2151
|
-
visible_columns = [str(col) for col in proto_view.visible_columns.values]
|
2144
|
+
visible_columns = MessageToDict(proto_view.visible_columns) if proto_view.HasField('visible_columns') else None
|
2152
2145
|
|
2153
2146
|
return TableView(
|
2154
2147
|
id=proto_view.id,
|
@@ -2204,7 +2197,7 @@ class SyncTapleService(BaseTapleService):
|
|
2204
2197
|
- view_type: 视图类型
|
2205
2198
|
- filter_criteria: 过滤条件(可选)
|
2206
2199
|
- sort_criteria: 排序条件(可选)
|
2207
|
-
- visible_columns:
|
2200
|
+
- visible_columns: 可见列配置(可选),字典格式 {column_id: bool}
|
2208
2201
|
- group_criteria: 分组条件(可选)
|
2209
2202
|
- is_hidden: 是否隐藏(可选,默认False)
|
2210
2203
|
- is_default: 是否默认视图(可选,默认False)
|
@@ -2227,12 +2220,13 @@ class SyncTapleService(BaseTapleService):
|
|
2227
2220
|
view_req = taple_service_pb2.CreateTableViewData(
|
2228
2221
|
view_name=view_data['view_name'],
|
2229
2222
|
view_type=view_data['view_type'],
|
2230
|
-
visible_columns=view_data.get('visible_columns', []),
|
2231
2223
|
is_hidden=view_data.get('is_hidden', False),
|
2232
2224
|
is_default=view_data.get('is_default', False),
|
2233
2225
|
)
|
2234
2226
|
|
2235
2227
|
# 处理可选的 JSON 字段
|
2228
|
+
if 'visible_columns' in view_data:
|
2229
|
+
view_req.visible_columns.CopyFrom(self._convert_dict_to_struct(view_data['visible_columns']))
|
2236
2230
|
if 'filter_criteria' in view_data:
|
2237
2231
|
view_req.filter_criteria.CopyFrom(self._convert_dict_to_struct(view_data['filter_criteria']))
|
2238
2232
|
if 'sort_criteria' in view_data:
|
@@ -13,35 +13,35 @@ file_hub_client/rpc/generate_grpc.py,sha256=opzstxWdW7vqR9OxrgUCSUkZe8IqgcOdruqW
|
|
13
13
|
file_hub_client/rpc/interceptors.py,sha256=UeQ8u-olMiYwScXJrlzqPS-odGomH-h3xJqOwPznRUo,22071
|
14
14
|
file_hub_client/rpc/sync_client.py,sha256=ZWBmP-TU8eeAfl2lV8sLu9nsxo_aOPAVmt9ww_T8Hwg,14054
|
15
15
|
file_hub_client/rpc/gen/__init__.py,sha256=NJLqr9ezUXeOyy1J0sMPn3Kl_8IyGw7GAzzzewO3MIw,45
|
16
|
-
file_hub_client/rpc/gen/file_service_pb2.py,sha256=
|
16
|
+
file_hub_client/rpc/gen/file_service_pb2.py,sha256=_0OKjhzI82aW71bRji4W6RK2yYHqbFlZgYtOBL-VxVM,8425
|
17
17
|
file_hub_client/rpc/gen/file_service_pb2_grpc.py,sha256=D-vs_udh-8YK2wxSClIKGVNdYFGg40IYMiLVkwe8QOs,20723
|
18
18
|
file_hub_client/rpc/gen/folder_service_pb2.py,sha256=OPNYHThmL1k2KH1ll2L_Gj76oWBWqcymXKHu8mk1Zvk,4126
|
19
19
|
file_hub_client/rpc/gen/folder_service_pb2_grpc.py,sha256=pOHFsVThdAu5DAKd8QK3_zQvUmFgGlh4KBqIYnYDZ_U,10411
|
20
|
-
file_hub_client/rpc/gen/taple_service_pb2.py,sha256=
|
20
|
+
file_hub_client/rpc/gen/taple_service_pb2.py,sha256=8BJCFRFJ_khl_Uaw-5jWCabljWJo6zaqOYWe1368xEw,48254
|
21
21
|
file_hub_client/rpc/gen/taple_service_pb2_grpc.py,sha256=DCL-45PlEZ0guLz1u2fFH_sDIT_awuSvp9Ak6fa2GO8,64773
|
22
|
-
file_hub_client/rpc/protos/file_service.proto,sha256=
|
22
|
+
file_hub_client/rpc/protos/file_service.proto,sha256=I0Px8pYmNERwnUECIuBEe_RAe4KUByEJ4d6K_8iDFFs,3694
|
23
23
|
file_hub_client/rpc/protos/folder_service.proto,sha256=cgIbJT2slXMMRGrtrzN3kjae9-4CB1zXCmceiUgE6fI,1542
|
24
|
-
file_hub_client/rpc/protos/taple_service.proto,sha256=
|
24
|
+
file_hub_client/rpc/protos/taple_service.proto,sha256=0mwhyBwD3yvFhMiiSA6J3Ni6pyHc369iD4oDXXl7DIU,29765
|
25
25
|
file_hub_client/schemas/__init__.py,sha256=kA0jUV5C3EBZxXWd80hHiMvJw0KL068EintZJx-vkJw,2100
|
26
26
|
file_hub_client/schemas/context.py,sha256=bs-KXGBBo_9i1KbvozY8KjYzV5ZtMbjqpPW_ssN7qMs,5516
|
27
27
|
file_hub_client/schemas/file.py,sha256=M-iuaZE2bdW3JSZJkNAvIOuUjhaAJInTiDLZFYzqM-Y,3616
|
28
28
|
file_hub_client/schemas/folder.py,sha256=D7UFsLCou-7CCXCQvuRObaBQEGmETsm1cgGOG1ceSrk,1026
|
29
|
-
file_hub_client/schemas/taple.py,sha256=
|
29
|
+
file_hub_client/schemas/taple.py,sha256=LYsECsDbcioPXcvjRBcCEbh083iEB-eFCapJrGMJ8w0,17790
|
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=kIsz-tGDLgmk4J5I-h95Aummz1UPo55ffy5vIAFQxaU,20578
|
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=I2_fcdpE6jyZ4Bs7-zWzr5PhWWPMfKQLcYMuYV2cDiE,20359
|
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=
|
42
|
-
file_hub_client/services/taple/base_taple_service.py,sha256=
|
41
|
+
file_hub_client/services/taple/async_taple_service.py,sha256=uk0iLa31KIsVaujgKbOZ0nrrC7lq60D_ySmSTuUoiLw,88272
|
42
|
+
file_hub_client/services/taple/base_taple_service.py,sha256=f44tRmuf7yTR3GGUaVm0pA_RJgOwIDwpZq9_QtkbSWM,15199
|
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=WTfuzrimAEW6XyIuuoPYx3ZKFuwSYFaRCHWVqpTa08Q,86805
|
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.11.dist-info/METADATA,sha256=GPa_nnCW-rq81LzaB_8TmR34NvNiTvtbBxCcaigDGeo,64874
|
55
|
+
tamar_file_hub_client-0.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
56
|
+
tamar_file_hub_client-0.0.11.dist-info/top_level.txt,sha256=9wcR7hyAJQdJg_kuH6WR3nmpJ8O-j8aJNK8f_kcFy6U,16
|
57
|
+
tamar_file_hub_client-0.0.11.dist-info/RECORD,,
|
File without changes
|
{tamar_file_hub_client-0.0.9.dist-info → tamar_file_hub_client-0.0.11.dist-info}/top_level.txt
RENAMED
File without changes
|