tencentcloud-sdk-python-ess 3.1.126__tar.gz → 3.1.129__tar.gz
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.
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/setup.py +1 -1
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/v20201111/ess_client.py +63 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/v20201111/ess_client_async.py +53 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/v20201111/models.py +447 -166
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud_sdk_python_ess.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ess-3.1.129/tencentcloud_sdk_python_ess.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ess-3.1.126/tencentcloud_sdk_python_ess.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/README.rst +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/__init__.py +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/v20201111/__init__.py +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud/ess/v20201111/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud_sdk_python_ess.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud_sdk_python_ess.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ess-3.1.126 → tencentcloud_sdk_python_ess-3.1.129}/tencentcloud_sdk_python_ess.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ess
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.129
|
|
4
4
|
Summary: Tencent Cloud Ess SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.129
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ess',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.129,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ess SDK for Python',
|
|
@@ -701,6 +701,7 @@ class EssClient(AbstractClient):
|
|
|
701
701
|
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
702
702
|
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
703
703
|
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/GetTaskResultApi" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
704
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">新建文件转换任务(CreateFileConvertTask)</a><br />
|
|
704
705
|
注:
|
|
705
706
|
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
706
707
|
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
@@ -993,6 +994,37 @@ class EssClient(AbstractClient):
|
|
|
993
994
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
994
995
|
|
|
995
996
|
|
|
997
|
+
def CreateFileConvertTask(self, request):
|
|
998
|
+
r"""此接口(CreateFileConvertTask)用来将word、excel、html、图片、txt类型文件转换为PDF文件。<br />
|
|
999
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务(CreateConvertTaskApi)</a><br />
|
|
1000
|
+
前提条件:源文件已经通过 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/UploadFiles" target="_blank">文件上传接口</a>完成上传,并得到了源文件的资源Id。<br />
|
|
1001
|
+
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
1002
|
+
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
1003
|
+
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/DescribeFileConvertTask" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
1004
|
+
注:
|
|
1005
|
+
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
1006
|
+
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
1007
|
+
|
|
1008
|
+
:param request: Request instance for CreateFileConvertTask.
|
|
1009
|
+
:type request: :class:`tencentcloud.ess.v20201111.models.CreateFileConvertTaskRequest`
|
|
1010
|
+
:rtype: :class:`tencentcloud.ess.v20201111.models.CreateFileConvertTaskResponse`
|
|
1011
|
+
|
|
1012
|
+
"""
|
|
1013
|
+
try:
|
|
1014
|
+
params = request._serialize()
|
|
1015
|
+
headers = request.headers
|
|
1016
|
+
body = self.call("CreateFileConvertTask", params, headers=headers)
|
|
1017
|
+
response = json.loads(body)
|
|
1018
|
+
model = models.CreateFileConvertTaskResponse()
|
|
1019
|
+
model._deserialize(response["Response"])
|
|
1020
|
+
return model
|
|
1021
|
+
except Exception as e:
|
|
1022
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1023
|
+
raise
|
|
1024
|
+
else:
|
|
1025
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1026
|
+
|
|
1027
|
+
|
|
996
1028
|
def CreateFileCounterSign(self, request):
|
|
997
1029
|
r"""此接口用于发起数字文件CA加签操作。可以使用同步或者异步模式进行。
|
|
998
1030
|
|
|
@@ -3332,6 +3364,36 @@ class EssClient(AbstractClient):
|
|
|
3332
3364
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3333
3365
|
|
|
3334
3366
|
|
|
3367
|
+
def DescribeFileConvertTask(self, request):
|
|
3368
|
+
r"""此接口(DescribeFileConvertTask)用来查询转换任务的状态。如需发起转换任务,请使用<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行资源文件的转换操作<br />
|
|
3369
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/GetTaskResultApi" target="_blank">查询转换任务状态(GetTaskResultApi)</a><br />
|
|
3370
|
+
前提条件:已调用 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
3371
|
+
|
|
3372
|
+
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />
|
|
3373
|
+
注:
|
|
3374
|
+
1. `大文件转换所需的时间可能会比较长`
|
|
3375
|
+
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
3376
|
+
|
|
3377
|
+
:param request: Request instance for DescribeFileConvertTask.
|
|
3378
|
+
:type request: :class:`tencentcloud.ess.v20201111.models.DescribeFileConvertTaskRequest`
|
|
3379
|
+
:rtype: :class:`tencentcloud.ess.v20201111.models.DescribeFileConvertTaskResponse`
|
|
3380
|
+
|
|
3381
|
+
"""
|
|
3382
|
+
try:
|
|
3383
|
+
params = request._serialize()
|
|
3384
|
+
headers = request.headers
|
|
3385
|
+
body = self.call("DescribeFileConvertTask", params, headers=headers)
|
|
3386
|
+
response = json.loads(body)
|
|
3387
|
+
model = models.DescribeFileConvertTaskResponse()
|
|
3388
|
+
model._deserialize(response["Response"])
|
|
3389
|
+
return model
|
|
3390
|
+
except Exception as e:
|
|
3391
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3392
|
+
raise
|
|
3393
|
+
else:
|
|
3394
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3395
|
+
|
|
3396
|
+
|
|
3335
3397
|
def DescribeFileCounterSignResult(self, request):
|
|
3336
3398
|
r"""文件CA加签任务结果查询接口,用于查询 CreateFileCounterSign接口 发起的异步加签任务。
|
|
3337
3399
|
|
|
@@ -4124,6 +4186,7 @@ class EssClient(AbstractClient):
|
|
|
4124
4186
|
前提条件:已调用 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
4125
4187
|
|
|
4126
4188
|
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />
|
|
4189
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/DescribeFileConvertTask" target="_blank">查询文件转换任务状态(DescribeFileConvertTask)</a><br />
|
|
4127
4190
|
注:
|
|
4128
4191
|
1. `大文件转换所需的时间可能会比较长`
|
|
4129
4192
|
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
@@ -600,6 +600,7 @@ class EssClient(AbstractClient):
|
|
|
600
600
|
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
601
601
|
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
602
602
|
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/GetTaskResultApi" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
603
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">新建文件转换任务(CreateFileConvertTask)</a><br />
|
|
603
604
|
注:
|
|
604
605
|
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
605
606
|
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
@@ -842,6 +843,32 @@ class EssClient(AbstractClient):
|
|
|
842
843
|
|
|
843
844
|
return await self.call_and_deserialize(**kwargs)
|
|
844
845
|
|
|
846
|
+
async def CreateFileConvertTask(
|
|
847
|
+
self,
|
|
848
|
+
request: models.CreateFileConvertTaskRequest,
|
|
849
|
+
opts: Dict = None,
|
|
850
|
+
) -> models.CreateFileConvertTaskResponse:
|
|
851
|
+
"""
|
|
852
|
+
此接口(CreateFileConvertTask)用来将word、excel、html、图片、txt类型文件转换为PDF文件。<br />
|
|
853
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务(CreateConvertTaskApi)</a><br />
|
|
854
|
+
前提条件:源文件已经通过 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/UploadFiles" target="_blank">文件上传接口</a>完成上传,并得到了源文件的资源Id。<br />
|
|
855
|
+
适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
|
|
856
|
+
适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
|
|
857
|
+
转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/DescribeFileConvertTask" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
|
|
858
|
+
注:
|
|
859
|
+
1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
|
|
860
|
+
2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
|
|
861
|
+
"""
|
|
862
|
+
|
|
863
|
+
kwargs = {}
|
|
864
|
+
kwargs["action"] = "CreateFileConvertTask"
|
|
865
|
+
kwargs["params"] = request._serialize()
|
|
866
|
+
kwargs["resp_cls"] = models.CreateFileConvertTaskResponse
|
|
867
|
+
kwargs["headers"] = request.headers
|
|
868
|
+
kwargs["opts"] = opts or {}
|
|
869
|
+
|
|
870
|
+
return await self.call_and_deserialize(**kwargs)
|
|
871
|
+
|
|
845
872
|
async def CreateFileCounterSign(
|
|
846
873
|
self,
|
|
847
874
|
request: models.CreateFileCounterSignRequest,
|
|
@@ -2811,6 +2838,31 @@ class EssClient(AbstractClient):
|
|
|
2811
2838
|
|
|
2812
2839
|
return await self.call_and_deserialize(**kwargs)
|
|
2813
2840
|
|
|
2841
|
+
async def DescribeFileConvertTask(
|
|
2842
|
+
self,
|
|
2843
|
+
request: models.DescribeFileConvertTaskRequest,
|
|
2844
|
+
opts: Dict = None,
|
|
2845
|
+
) -> models.DescribeFileConvertTaskResponse:
|
|
2846
|
+
"""
|
|
2847
|
+
此接口(DescribeFileConvertTask)用来查询转换任务的状态。如需发起转换任务,请使用<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行资源文件的转换操作<br />
|
|
2848
|
+
<font color="red">原功能接口: </font><a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/GetTaskResultApi" target="_blank">查询转换任务状态(GetTaskResultApi)</a><br />
|
|
2849
|
+
前提条件:已调用 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateFileConvertTask" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
2850
|
+
|
|
2851
|
+
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />
|
|
2852
|
+
注:
|
|
2853
|
+
1. `大文件转换所需的时间可能会比较长`
|
|
2854
|
+
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|
|
2855
|
+
"""
|
|
2856
|
+
|
|
2857
|
+
kwargs = {}
|
|
2858
|
+
kwargs["action"] = "DescribeFileConvertTask"
|
|
2859
|
+
kwargs["params"] = request._serialize()
|
|
2860
|
+
kwargs["resp_cls"] = models.DescribeFileConvertTaskResponse
|
|
2861
|
+
kwargs["headers"] = request.headers
|
|
2862
|
+
kwargs["opts"] = opts or {}
|
|
2863
|
+
|
|
2864
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2865
|
+
|
|
2814
2866
|
async def DescribeFileCounterSignResult(
|
|
2815
2867
|
self,
|
|
2816
2868
|
request: models.DescribeFileCounterSignResultRequest,
|
|
@@ -3463,6 +3515,7 @@ class EssClient(AbstractClient):
|
|
|
3463
3515
|
前提条件:已调用 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/CreateConvertTaskApi" target="_blank">创建文件转换任务接口</a>进行文件转换,并得到了返回的转换任务Id。<br />
|
|
3464
3516
|
|
|
3465
3517
|
适用场景:已创建一个文件转换任务,想查询该文件转换任务的状态,或获取转换后的文件资源Id。<br />
|
|
3518
|
+
<font color="red">此接口于 2026 年 12月 31 日下线</font>,请使用新接口: <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/DescribeFileConvertTask" target="_blank">查询文件转换任务状态(DescribeFileConvertTask)</a><br />
|
|
3466
3519
|
注:
|
|
3467
3520
|
1. `大文件转换所需的时间可能会比较长`
|
|
3468
3521
|
2. `本接口返回的文件资源ID就是PDF资源ID,可以直接用于【用PDF文件创建签署流程】接口发起合同。`
|