Registry / ai-ml / tencentcloud-sdk-python-hcm

tencentcloud-sdk-python-hcm

JSON →
library3.1.78pypypi✓ verified 84d ago

Tencent Cloud HCM (Human Cloud Matching) SDK for Python. Provides APIs for face recognition, human cloud matching, and related AI services. Current version 3.1.78. Release cadence follows the main tencentcloud-sdk-python monthly releases.

pip install tencentcloud-sdk-python-hcm
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-hcm
ai-mlpythonv3.1.78
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HcmClient
from tencentcloud.hcm.v20181106 import hcm_client
Version-specific import path; always include the API version v20181106

Authenticate with environment variables and call a HCM API.

import os from tencentcloud.common import credential from tencentcloud.hcm.v20181106 import hcm_client, models creds = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = hcm_client.HcmClient(creds, 'ap-guangzhou') req = models.DescribeImageRequest() # set request parameters... response = client.DescribeImage(req) print(response)
Debug
Known issues
deprecatedOlder SDK versions (before 3.x) used a different import pattern under 'tencentcloud-sdk-python' package directly. Ensure you use the per-service package.
fix
Install tencentcloud-sdk-python-hcm instead of the monolithic tencentcloud-sdk-python.
affects: <3.0
gotchaThe API version (v20181106) is part of the import path. Using the wrong version leads to ImportError.
fix
Always use v20181106 for HCM. If unsure, check the module list: pip show tencentcloud-sdk-python-hcm
affects: all
gotchaSome users forget to import models, causing AttributeError when constructing requests.
fix
Always import models: from tencentcloud.hcm.v20181106 import models
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'HcmClient' from 'tencentcloud.hcm.v20181106'
Forgot to import from the correct submodule hcm_client, or used wrong API version.
fix
Use: from tencentcloud.hcm.v20181106 import hcm_client
ModuleNotFoundError: No module named 'tencentcloud.common'
Missing the common dependency package.
fix
Install the common package: pip install tencentcloud-sdk-python-common
Upgrade
Version history
3.1.78latest on PyPI · released Apr 14, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for all Tencent Cloud SDKs; provides base client and authentication
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
tencentcloud-sdk-python-hcm — pip install tencentcloud-sdk-python-hcm · libregistry