Registry / http-networking / tencentcloud-sdk-python-vms

tencentcloud-sdk-python-vms

JSON →
library3.0.1459pypypi✓ verified 84d ago

The Tencent Cloud Voice Message Service (VMS) SDK for Python allows developers to integrate voice notification and verification capabilities. Current version 3.0.1459, updated frequently as part of the TencentCloud unified Python SDK.

pip install tencentcloud-sdk-python-vms
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-vms
http-networkingpythonv3.0.1459
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.

VmsClient
from tencentcloud.vms.v20200902 import vms_client
from tencentcloud.vms import VmsClient
VmsClient is a separate module, not directly in the vms package.
SendCodeVoiceRequest
from tencentcloud.vms.v20200902 import models
from tencentcloud.vms import models
Models are versioned, must use the v20200902 subpackage.

Sends a voice verification code using environment variables for credentials.

from tencentcloud.common import credential from tencentcloud.vms.v20200902 import vms_client, models cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = vms_client.VmsClient(cred, "ap-guangzhou") req = models.SendCodeVoiceRequest() req.CodeMessage = "123456" req.CalledNumber = "+861234567890" resp = client.SendCodeVoice(req) print(resp.RequestId)
Debug
Known issues
gotchaThe VMS SDK uses a versioned subpackage (v20200902). Ensure you import from the correct API version.
fix
Use 'from tencentcloud.vms.v20200902 import vms_client, models' instead of non-versioned imports.
affects: All versions
gotchaThe client constructor requires a region parameter, even if not all APIs use it. Missing region may cause errors.
fix
Always pass a region string like 'ap-guangzhou' or your nearest region.
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.vms'
The SDK is separated into multiple packages. Installing the parent tencentcloud-sdk-python does not include all services.
fix
pip install tencentcloud-sdk-python-vms
AttributeError: module 'tencentcloud.vms' has no attribute 'v20200902'
The package may not be installed or the import path is incorrect.
fix
Ensure you installed tencentcloud-sdk-python-vms and import using 'from tencentcloud.vms.v20200902 import vms_client'.
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
OpenAI (training)
1
Resources