tccli 3.0.1358.1__py2.py3-none-any.whl → 3.0.1360.1__py2.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.
Files changed (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/ai3d/v20250513/api.json +5 -5
  4. tccli/services/ai3d/v20250513/examples.json +1 -1
  5. tccli/services/aiart/v20221229/api.json +34 -34
  6. tccli/services/aiart/v20221229/examples.json +11 -11
  7. tccli/services/cbs/v20170312/api.json +10 -1
  8. tccli/services/cdb/v20170320/api.json +103 -101
  9. tccli/services/cdb/v20170320/examples.json +11 -11
  10. tccli/services/cdn/v20180606/api.json +9 -9
  11. tccli/services/dsgc/v20190723/api.json +1 -1
  12. tccli/services/ess/v20201111/api.json +19 -1
  13. tccli/services/essbasic/v20210526/api.json +33 -15
  14. tccli/services/gs/v20191118/api.json +28 -4
  15. tccli/services/hunyuan/v20230901/api.json +12 -12
  16. tccli/services/hunyuan/v20230901/examples.json +4 -4
  17. tccli/services/lcic/v20220817/api.json +8 -8
  18. tccli/services/lcic/v20220817/examples.json +1 -1
  19. tccli/services/live/v20180801/api.json +45 -3
  20. tccli/services/live/v20180801/examples.json +2 -2
  21. tccli/services/lke/v20231130/api.json +43 -23
  22. tccli/services/mna/v20210119/api.json +1 -1
  23. tccli/services/mps/v20190612/api.json +496 -133
  24. tccli/services/mps/v20190612/examples.json +12 -0
  25. tccli/services/oceanus/v20190422/api.json +22 -2
  26. tccli/services/ocr/ocr_client.py +53 -0
  27. tccli/services/ocr/v20181119/api.json +80 -0
  28. tccli/services/ocr/v20181119/examples.json +8 -0
  29. tccli/services/postgres/v20170312/api.json +230 -226
  30. tccli/services/postgres/v20170312/examples.json +43 -43
  31. tccli/services/redis/v20180412/api.json +1 -1
  32. tccli/services/ssl/v20191205/api.json +29 -2
  33. tccli/services/vclm/v20240523/api.json +6 -6
  34. tccli/services/vclm/v20240523/examples.json +1 -1
  35. tccli/services/vod/v20180717/api.json +206 -2
  36. tccli/services/wedata/v20210820/api.json +889 -2
  37. tccli/services/wedata/v20210820/examples.json +72 -2
  38. tccli/services/wedata/wedata_client.py +440 -16
  39. tccli/services/wsa/__init__.py +4 -0
  40. tccli/services/wsa/v20250508/api.json +113 -0
  41. tccli/services/wsa/v20250508/examples.json +13 -0
  42. tccli/services/wsa/wsa_client.py +207 -0
  43. {tccli-3.0.1358.1.dist-info → tccli-3.0.1360.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1358.1.dist-info → tccli-3.0.1360.1.dist-info}/RECORD +47 -43
  45. {tccli-3.0.1358.1.dist-info → tccli-3.0.1360.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1358.1.dist-info → tccli-3.0.1360.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1358.1.dist-info → tccli-3.0.1360.1.dist-info}/license_files/LICENSE +0 -0
@@ -1206,6 +1206,18 @@
1206
1206
  "input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProcessMedia\n<公共请求参数>\n\n{\n \"MediaProcessTask\": {\n \"TranscodeTaskSet\": [\n {\n \"Definition\": \"30\"\n },\n {\n \"Definition\": \"20\"\n },\n {\n \"Definition\": \"40\"\n }\n ]\n },\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Region\": \"ap-chongqing\",\n \"Object\": \"/movie/201907/WildAnimal.mov\",\n \"Bucket\": \"TopRankVideo-125xxx88\"\n }\n }\n}",
1207
1207
  "output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\",\n \"TaskId\": \"125xxx65-procedurev2-bffb15f07530b57bc1aabb01fac74bca\"\n }\n}",
1208
1208
  "title": "发起转码任务"
1209
+ },
1210
+ {
1211
+ "document": "",
1212
+ "input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProcessMedia\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"TopRankVideo-125xxx88\",\n \"Region\": \"ap-shanghai\",\n \"Object\": \"/image/lenna.jpeg\"\n }\n },\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"TopRankVideo-125xxx88\",\n \"Region\": \"ap-shanghai\"\n }\n },\n \"OutputDir\": \"/data/share/\",\n \"AiQualityControlTask\": {\n \"Definition\": 30\n }\n}",
1213
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4a72e698-ec27-4fc1-8e17-c1cbfce1a4a9\",\n \"TaskId\": \"2600007696-WorkflowTask-67771a50b24d08baaf6165da23461e36tt7\"\n }\n}",
1214
+ "title": "发起媒体质检任务"
1215
+ },
1216
+ {
1217
+ "document": "",
1218
+ "input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProcessMedia\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"TopRankVideo-125xxx88\",\n \"Region\": \"ap-shanghai\",\n \"Object\": \"/video/lego-city-vehicles.mp4\"\n }\n },\n \"OutputDir\": \"/share/output/\",\n \"MediaProcessTask\": {\n \"AdaptiveDynamicStreamingTaskSet\": [\n {\n \"Definition\": 10,\n \"OutputObjectPath\": \"{inputName}_adaptiveDynamicStreaming.{format}\",\n \"SubStreamObjectName\": \"{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}.{format}\",\n \"SegmentObjectName\": \"{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}_{segmentNumber}.{format}\"\n }\n ]\n }\n}",
1219
+ "output": "{\n \"Response\": {\n \"RequestId\": \"be6954ba-1e0e-4b36-9da1-d79aaaaccb0d\",\n \"TaskId\": \"2600007696-WorkflowTask-7bc4b70f5bda4b4fef4ad29d2d168bdftt7\"\n }\n}",
1220
+ "title": "发起自适应码流任务"
1209
1221
  }
1210
1222
  ],
1211
1223
  "RecognizeMediaForZhiXue": [
@@ -3996,7 +3996,7 @@
3996
3996
  "members": [
3997
3997
  {
3998
3998
  "disabled": false,
3999
- "document": "筛选条件字段",
3999
+ "document": "筛选条件字段,使用了筛选字段后不支持分页,最多返回2000条记录",
4000
4000
  "example": "无",
4001
4001
  "member": "Filter",
4002
4002
  "name": "Filters",
@@ -4133,12 +4133,32 @@
4133
4133
  {
4134
4134
  "disabled": false,
4135
4135
  "document": "请求ID\n注意:此字段可能返回 null,表示取不到有效值。",
4136
- "example": "xxx",
4136
+ "example": "ocs-111",
4137
4137
  "member": "string",
4138
4138
  "name": "RequestId",
4139
4139
  "output_required": true,
4140
4140
  "type": "string",
4141
4141
  "value_allowed_null": true
4142
+ },
4143
+ {
4144
+ "disabled": false,
4145
+ "document": "attach-000\n注意:此字段可能返回 null,表示取不到有效值。",
4146
+ "example": "attach-000",
4147
+ "member": "string",
4148
+ "name": "PageAttach",
4149
+ "output_required": false,
4150
+ "type": "string",
4151
+ "value_allowed_null": true
4152
+ },
4153
+ {
4154
+ "disabled": false,
4155
+ "document": "bool\n注意:此字段可能返回 null,表示取不到有效值。",
4156
+ "example": "false",
4157
+ "member": "bool",
4158
+ "name": "HasMore",
4159
+ "output_required": false,
4160
+ "type": "bool",
4161
+ "value_allowed_null": true
4142
4162
  }
4143
4163
  ],
4144
4164
  "usage": "out"
@@ -3709,6 +3709,58 @@ def doRecognizeMedicalInvoiceOCR(args, parsed_globals):
3709
3709
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
3710
 
3711
3711
 
3712
+ def doRecognizeTableMultiOCR(args, parsed_globals):
3713
+ g_param = parse_global_arg(parsed_globals)
3714
+
3715
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3716
+ cred = credential.CVMRoleCredential()
3717
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3718
+ cred = credential.STSAssumeRoleCredential(
3719
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3720
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3721
+ )
3722
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3723
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3724
+ else:
3725
+ cred = credential.Credential(
3726
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3727
+ )
3728
+ http_profile = HttpProfile(
3729
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3730
+ reqMethod="POST",
3731
+ endpoint=g_param[OptionsDefine.Endpoint],
3732
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3733
+ )
3734
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3735
+ if g_param[OptionsDefine.Language]:
3736
+ profile.language = g_param[OptionsDefine.Language]
3737
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3738
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3739
+ client._sdkVersion += ("_CLI_" + __version__)
3740
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
+ model = models.RecognizeTableMultiOCRRequest()
3742
+ model.from_json_string(json.dumps(args))
3743
+ start_time = time.time()
3744
+ while True:
3745
+ rsp = client.RecognizeTableMultiOCR(model)
3746
+ result = rsp.to_json_string()
3747
+ try:
3748
+ json_obj = json.loads(result)
3749
+ except TypeError as e:
3750
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3751
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3752
+ break
3753
+ cur_time = time.time()
3754
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3755
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3756
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3757
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3758
+ else:
3759
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3760
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3761
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
+
3763
+
3712
3764
  def doGeneralFastOCR(args, parsed_globals):
3713
3765
  g_param = parse_global_arg(parsed_globals)
3714
3766
 
@@ -4623,6 +4675,7 @@ ACTION_MAP = {
4623
4675
  "QuestionSplitOCR": doQuestionSplitOCR,
4624
4676
  "MLIDCardOCR": doMLIDCardOCR,
4625
4677
  "RecognizeMedicalInvoiceOCR": doRecognizeMedicalInvoiceOCR,
4678
+ "RecognizeTableMultiOCR": doRecognizeTableMultiOCR,
4626
4679
  "GeneralFastOCR": doGeneralFastOCR,
4627
4680
  "VatInvoiceOCR": doVatInvoiceOCR,
4628
4681
  "RecognizeForeignPermanentResidentIdCard": doRecognizeForeignPermanentResidentIdCard,
@@ -448,6 +448,13 @@
448
448
  "output": "RecognizeTableAccurateOCRResponse",
449
449
  "status": "online"
450
450
  },
451
+ "RecognizeTableMultiOCR": {
452
+ "document": "基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。\n\n默认接口请求频率限制:1次/秒。",
453
+ "input": "RecognizeTableMultiOCRRequest",
454
+ "name": "表格识别(多模态版)",
455
+ "output": "RecognizeTableMultiOCRResponse",
456
+ "status": "online"
457
+ },
451
458
  "RecognizeTableOCR": {
452
459
  "document": "本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。\n\n默认接口请求频率限制:10次/秒。",
453
460
  "input": "RecognizeTableOCRRequest",
@@ -14820,6 +14827,79 @@
14820
14827
  ],
14821
14828
  "type": "object"
14822
14829
  },
14830
+ "RecognizeTableMultiOCRRequest": {
14831
+ "document": "RecognizeTableMultiOCR请求参数结构体",
14832
+ "members": [
14833
+ {
14834
+ "disabled": false,
14835
+ "document": "图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ",
14836
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
14837
+ "member": "string",
14838
+ "name": "ImageBase64",
14839
+ "required": false,
14840
+ "type": "string"
14841
+ },
14842
+ {
14843
+ "disabled": false,
14844
+ "document": "图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ",
14845
+ "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg",
14846
+ "member": "string",
14847
+ "name": "ImageUrl",
14848
+ "required": false,
14849
+ "type": "string"
14850
+ },
14851
+ {
14852
+ "disabled": false,
14853
+ "document": "文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。",
14854
+ "example": "1",
14855
+ "member": "int64",
14856
+ "name": "PdfStartPageNumber",
14857
+ "required": false,
14858
+ "type": "int"
14859
+ },
14860
+ {
14861
+ "disabled": false,
14862
+ "document": "文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。",
14863
+ "example": "3",
14864
+ "member": "int64",
14865
+ "name": "PdfEndPageNumber",
14866
+ "required": false,
14867
+ "type": "int"
14868
+ },
14869
+ {
14870
+ "disabled": false,
14871
+ "document": "配置选项,支持配置输出数据格式。\n\n* **Mdbase64** 返回 base64 编码的 markdown 格式文本。\n* **Excelbase64** 返回 base64 编码的 excel 文件。",
14872
+ "example": "Excelbase64",
14873
+ "member": "string",
14874
+ "name": "DataFormat",
14875
+ "required": false,
14876
+ "type": "string"
14877
+ }
14878
+ ],
14879
+ "type": "object"
14880
+ },
14881
+ "RecognizeTableMultiOCRResponse": {
14882
+ "document": "RecognizeTableMultiOCR返回参数结构体",
14883
+ "members": [
14884
+ {
14885
+ "disabled": false,
14886
+ "document": "Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
14887
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
14888
+ "member": "string",
14889
+ "name": "DataBase64",
14890
+ "output_required": true,
14891
+ "type": "string",
14892
+ "value_allowed_null": true
14893
+ },
14894
+ {
14895
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
14896
+ "member": "string",
14897
+ "name": "RequestId",
14898
+ "type": "string"
14899
+ }
14900
+ ],
14901
+ "type": "object"
14902
+ },
14823
14903
  "RecognizeTableOCRRequest": {
14824
14904
  "document": "RecognizeTableOCR请求参数结构体",
14825
14905
  "members": [
@@ -554,6 +554,14 @@
554
554
  "title": "RecognizeTableAccurateOCR调用"
555
555
  }
556
556
  ],
557
+ "RecognizeTableMultiOCR": [
558
+ {
559
+ "document": "调用成功示例",
560
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RecognizeTableMultiOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xxx.com/1.pdf\",\n \"PdfStartPageNumber\": 1,\n \"PdfEndPageNumber\": 2\n}",
561
+ "output": "{\n \"Response\": {\n \"RequestId\": \"43e5db77-ea0c-4b82-9f77-86387eb856e5\",\n \"DataBase64\": \"fCDpobnnm64gfCAyMDI0IOW5tDkg5pyIMz...4LjQ0IHwK\"\n }\n}",
562
+ "title": "调用成功示例"
563
+ }
564
+ ],
557
565
  "RecognizeTableOCR": [
558
566
  {
559
567
  "document": "表格识别示例代码",