tencentcloud-sdk-python-faceid 3.0.1459__tar.gz → 3.1.12__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_faceid-3.1.12/PKG-INFO +46 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/setup.py +2 -1
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/faceid/v20180301/errorcodes.py +0 -6
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/faceid/v20180301/faceid_client.py +0 -23
- tencentcloud_sdk_python_faceid-3.1.12/tencentcloud/faceid/v20180301/faceid_client_async.py +674 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/faceid/v20180301/models.py +57 -209
- tencentcloud_sdk_python_faceid-3.1.12/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_faceid-3.1.12/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-faceid-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-faceid-3.0.1459/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-faceid-3.0.1459/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.12}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-faceid
|
|
3
|
+
Version: 3.1.12
|
|
4
|
+
Summary: Tencent Cloud Faceid 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.12
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Faceid 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-faceid
|
|
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 faceid
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-faceid',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.12,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Faceid SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -233,9 +233,6 @@ FAILEDOPERATION_UNKNOWN = 'FailedOperation.UnKnown'
|
|
|
233
233
|
# 该用户未注册E证通,请先注册并跟权威库核验。
|
|
234
234
|
FAILEDOPERATION_UNREGISTEREDEID = 'FailedOperation.UnregisteredEid'
|
|
235
235
|
|
|
236
|
-
# 认证不通过。
|
|
237
|
-
FAILEDOPERATION_VERIFICATIONFAIL = 'FailedOperation.VerificationFail'
|
|
238
|
-
|
|
239
236
|
# 视频解码异常
|
|
240
237
|
FAILEDOPERATION_VIDEODECODEFAILED = 'FailedOperation.VideoDecodeFailed'
|
|
241
238
|
|
|
@@ -254,9 +251,6 @@ INTERNALERROR_UNKNOWN = 'InternalError.UnKnown'
|
|
|
254
251
|
# 参数错误。
|
|
255
252
|
INVALIDPARAMETER = 'InvalidParameter'
|
|
256
253
|
|
|
257
|
-
# RuleId不存在。
|
|
258
|
-
INVALIDPARAMETER_RULEID = 'InvalidParameter.RuleId'
|
|
259
|
-
|
|
260
254
|
# 存在不加密的字段,请参考文档修改。
|
|
261
255
|
INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = 'InvalidParameter.UnsupportEncryptField'
|
|
262
256
|
|
|
@@ -624,29 +624,6 @@ class FaceidClient(AbstractClient):
|
|
|
624
624
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
625
625
|
|
|
626
626
|
|
|
627
|
-
def Liveness(self, request):
|
|
628
|
-
r"""活体检测
|
|
629
|
-
|
|
630
|
-
:param request: Request instance for Liveness.
|
|
631
|
-
:type request: :class:`tencentcloud.faceid.v20180301.models.LivenessRequest`
|
|
632
|
-
:rtype: :class:`tencentcloud.faceid.v20180301.models.LivenessResponse`
|
|
633
|
-
|
|
634
|
-
"""
|
|
635
|
-
try:
|
|
636
|
-
params = request._serialize()
|
|
637
|
-
headers = request.headers
|
|
638
|
-
body = self.call("Liveness", params, headers=headers)
|
|
639
|
-
response = json.loads(body)
|
|
640
|
-
model = models.LivenessResponse()
|
|
641
|
-
model._deserialize(response["Response"])
|
|
642
|
-
return model
|
|
643
|
-
except Exception as e:
|
|
644
|
-
if isinstance(e, TencentCloudSDKException):
|
|
645
|
-
raise
|
|
646
|
-
else:
|
|
647
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
648
|
-
|
|
649
|
-
|
|
650
627
|
def LivenessCompare(self, request):
|
|
651
628
|
r"""传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
|
|
652
629
|
|