Registry /
http-networking / tencentcloud-sdk-python-vms
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)
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.
fixpip 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.
fixEnsure 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.