tencentcloud-sdk-python-car 3.0.1459__tar.gz → 3.1.29__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.
Files changed (19) hide show
  1. tencentcloud_sdk_python_car-3.1.29/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/setup.py +2 -1
  3. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/car_client.py +23 -0
  5. tencentcloud_sdk_python_car-3.1.29/tencentcloud/car/v20220110/car_client_async.py +152 -0
  6. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/models.py +109 -0
  7. tencentcloud_sdk_python_car-3.1.29/tencentcloud_sdk_python_car.egg-info/PKG-INFO +46 -0
  8. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/SOURCES.txt +1 -0
  9. tencentcloud_sdk_python_car-3.1.29/tencentcloud_sdk_python_car.egg-info/requires.txt +1 -0
  10. tencentcloud-sdk-python-car-3.0.1459/PKG-INFO +0 -45
  11. tencentcloud-sdk-python-car-3.0.1459/tencentcloud_sdk_python_car.egg-info/PKG-INFO +0 -45
  12. tencentcloud-sdk-python-car-3.0.1459/tencentcloud_sdk_python_car.egg-info/requires.txt +0 -1
  13. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/README.rst +0 -0
  14. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/setup.cfg +0 -0
  15. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/__init__.py +0 -0
  16. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/__init__.py +0 -0
  17. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/dependency_links.txt +0 -0
  19. {tencentcloud-sdk-python-car-3.0.1459 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/top_level.txt +0 -0
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-car
3
+ Version: 3.1.29
4
+ Summary: Tencent Cloud Car SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-car
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common car
46
+
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-car',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1459,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.29,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Car SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1459'
17
+ __version__ = '3.1.29'
@@ -72,6 +72,29 @@ class CarClient(AbstractClient):
72
72
  raise TencentCloudSDKException(type(e).__name__, str(e))
73
73
 
74
74
 
75
+ def DescribeConcurrentCount(self, request):
76
+ r"""获取并发计数
77
+
78
+ :param request: Request instance for DescribeConcurrentCount.
79
+ :type request: :class:`tencentcloud.car.v20220110.models.DescribeConcurrentCountRequest`
80
+ :rtype: :class:`tencentcloud.car.v20220110.models.DescribeConcurrentCountResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("DescribeConcurrentCount", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.DescribeConcurrentCountResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
75
98
  def DestroySession(self, request):
76
99
  r"""销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
77
100
 
@@ -0,0 +1,152 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.car.v20220110 import models
20
+ from typing import Dict
21
+
22
+
23
+ class CarClient(AbstractClient):
24
+ _apiVersion = '2022-01-10'
25
+ _endpoint = 'car.tencentcloudapi.com'
26
+ _service = 'car'
27
+
28
+ async def ApplyConcurrent(
29
+ self,
30
+ request: models.ApplyConcurrentRequest,
31
+ opts: Dict = None,
32
+ ) -> models.ApplyConcurrentResponse:
33
+ """
34
+ 本接口用于申请并发。接口超时时间:20秒。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "ApplyConcurrent"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.ApplyConcurrentResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateSession(
47
+ self,
48
+ request: models.CreateSessionRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateSessionResponse:
51
+ """
52
+ 本接口用于创建会话。接口超时时间:5秒。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateSession"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateSessionResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DescribeConcurrentCount(
65
+ self,
66
+ request: models.DescribeConcurrentCountRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DescribeConcurrentCountResponse:
69
+ """
70
+ 获取并发计数
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "DescribeConcurrentCount"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.DescribeConcurrentCountResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DestroySession(
83
+ self,
84
+ request: models.DestroySessionRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DestroySessionResponse:
87
+ """
88
+ 销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DestroySession"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DestroySessionResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def StartPublishStream(
101
+ self,
102
+ request: models.StartPublishStreamRequest,
103
+ opts: Dict = None,
104
+ ) -> models.StartPublishStreamResponse:
105
+ """
106
+ 开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "StartPublishStream"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.StartPublishStreamResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def StartPublishStreamWithURL(
119
+ self,
120
+ request: models.StartPublishStreamWithURLRequest,
121
+ opts: Dict = None,
122
+ ) -> models.StartPublishStreamWithURLResponse:
123
+ """
124
+ 开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "StartPublishStreamWithURL"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.StartPublishStreamWithURLResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def StopPublishStream(
137
+ self,
138
+ request: models.StopPublishStreamRequest,
139
+ opts: Dict = None,
140
+ ) -> models.StopPublishStreamResponse:
141
+ """
142
+ 停止云端推流
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "StopPublishStream"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.StopPublishStreamResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
@@ -335,6 +335,115 @@ class CreateSessionResponse(AbstractModel):
335
335
  self._RequestId = params.get("RequestId")
336
336
 
337
337
 
338
+ class DescribeConcurrentCountRequest(AbstractModel):
339
+ r"""DescribeConcurrentCount请求参数结构体
340
+
341
+ """
342
+
343
+ def __init__(self):
344
+ r"""
345
+ :param _ProjectId: 项目ID
346
+ :type ProjectId: str
347
+ :param _ApplicationCategory: 应用类别(DESKTOP: 桌面端,MOBILE:移动端)
348
+ :type ApplicationCategory: str
349
+ """
350
+ self._ProjectId = None
351
+ self._ApplicationCategory = None
352
+
353
+ @property
354
+ def ProjectId(self):
355
+ r"""项目ID
356
+ :rtype: str
357
+ """
358
+ return self._ProjectId
359
+
360
+ @ProjectId.setter
361
+ def ProjectId(self, ProjectId):
362
+ self._ProjectId = ProjectId
363
+
364
+ @property
365
+ def ApplicationCategory(self):
366
+ r"""应用类别(DESKTOP: 桌面端,MOBILE:移动端)
367
+ :rtype: str
368
+ """
369
+ return self._ApplicationCategory
370
+
371
+ @ApplicationCategory.setter
372
+ def ApplicationCategory(self, ApplicationCategory):
373
+ self._ApplicationCategory = ApplicationCategory
374
+
375
+
376
+ def _deserialize(self, params):
377
+ self._ProjectId = params.get("ProjectId")
378
+ self._ApplicationCategory = params.get("ApplicationCategory")
379
+ memeber_set = set(params.keys())
380
+ for name, value in vars(self).items():
381
+ property_name = name[1:]
382
+ if property_name in memeber_set:
383
+ memeber_set.remove(property_name)
384
+ if len(memeber_set) > 0:
385
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
386
+
387
+
388
+
389
+ class DescribeConcurrentCountResponse(AbstractModel):
390
+ r"""DescribeConcurrentCount返回参数结构体
391
+
392
+ """
393
+
394
+ def __init__(self):
395
+ r"""
396
+ :param _Total: 并发总数
397
+ :type Total: int
398
+ :param _Running: 并发运行数,包括预启动中的、已连接的、等待重连、清理恢复等所有非空闲的并发数,所以刷新项目或断开并发包的用户连接,都会影响到该值
399
+ :type Running: int
400
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
401
+ :type RequestId: str
402
+ """
403
+ self._Total = None
404
+ self._Running = None
405
+ self._RequestId = None
406
+
407
+ @property
408
+ def Total(self):
409
+ r"""并发总数
410
+ :rtype: int
411
+ """
412
+ return self._Total
413
+
414
+ @Total.setter
415
+ def Total(self, Total):
416
+ self._Total = Total
417
+
418
+ @property
419
+ def Running(self):
420
+ r"""并发运行数,包括预启动中的、已连接的、等待重连、清理恢复等所有非空闲的并发数,所以刷新项目或断开并发包的用户连接,都会影响到该值
421
+ :rtype: int
422
+ """
423
+ return self._Running
424
+
425
+ @Running.setter
426
+ def Running(self, Running):
427
+ self._Running = Running
428
+
429
+ @property
430
+ def RequestId(self):
431
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
432
+ :rtype: str
433
+ """
434
+ return self._RequestId
435
+
436
+ @RequestId.setter
437
+ def RequestId(self, RequestId):
438
+ self._RequestId = RequestId
439
+
440
+
441
+ def _deserialize(self, params):
442
+ self._Total = params.get("Total")
443
+ self._Running = params.get("Running")
444
+ self._RequestId = params.get("RequestId")
445
+
446
+
338
447
  class DestroySessionRequest(AbstractModel):
339
448
  r"""DestroySession请求参数结构体
340
449
 
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-car
3
+ Version: 3.1.29
4
+ Summary: Tencent Cloud Car SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-car
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common car
46
+
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
5
5
  tencentcloud/car/__init__.py
6
6
  tencentcloud/car/v20220110/__init__.py
7
7
  tencentcloud/car/v20220110/car_client.py
8
+ tencentcloud/car/v20220110/car_client_async.py
8
9
  tencentcloud/car/v20220110/errorcodes.py
9
10
  tencentcloud/car/v20220110/models.py
10
11
  tencentcloud_sdk_python_car.egg-info/PKG-INFO
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.29
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-car
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Car SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-car
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common car
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-car
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Car SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-car
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common car
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1459