Registry / aws / tencentcloud-sdk-python-intl-en

tencentcloud-sdk-python-intl-en

JSON →
library3.1.91pypypi✓ verified 83d ago

Official SDK for accessing Tencent Cloud services from Python, designed for international regions. Version 3.1.91 provides async support, auto-retry, and typed APIs. Released via PyPI with monthly updates.

pip install tencentcloud-sdk-python-intl-en
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-intl-en
awspythonv3.1.91
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.

ClientProfile
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.common import ClientProfile
ClientProfile moved to submodule in v3.

Initialize a CVM client and describe instances.

import os from tencentcloud.common import credential from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile from tencentcloud.cvm.v20170312 import cvm_client, models cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) httpProfile = HttpProfile() httpProfile.endpoint = "cvm.tencentcloudapi.com" clientProfile = ClientProfile() clientProfile.httpProfile = httpProfile client = cvm_client.CvmClient(cred, "ap-guangzhou", clientProfile) req = models.DescribeInstancesRequest() resp = client.DescribeInstances(req) print(resp.to_json_string())
Debug
Known issues
breakingIn v3, all service modules have been restructured. Code from v2 (e.g., `from tencentcloud.cvm.v20170312 import cvm_client`) will fail if you use old import paths.
fix
Update imports to match v3 structure: `from tencentcloud.cvm.v20170312 import cvm_client, models`.
affects: <3.0.0
breakingAsync client moved to separate package `tencentcloud-sdk-python-intl-en-asyncio`. If you use async, install that and import from `tencentcloud.asyncio`.
fix
Install `tencentcloud-sdk-python-intl-en-asyncio` and change imports to `from tencentcloud.cvm.v20170312 import cvm_client as cvm_client_async` from the asyncio module.
affects: >=3.0.0
gotchaMany users mistakenly use the Chinese mainland SDK (`tencentcloud-sdk-python`) instead of the international SDK (`tencentcloud-sdk-python-intl-en`), causing endpoint mismatches.
fix
Ensure you install `tencentcloud-sdk-python-intl-en` and set endpoints to `*.tencentcloudapi.com` instead of `*.api.qcloud.com`.
affects: all
deprecatedThe `Credential` class from `tencentcloud.common.credential` is deprecated in favor of `tencentcloud.common.credential.Credential` (same class, but future-proof).
fix
Use `from tencentcloud.common import credential` and then `credential.Credential(...)`.
affects: >=3.1.0
Errors
Common errors & fixes
ImportError: cannot import name 'CvmClient' from 'tencentcloud.cvm.v20170312'
Wrong import path; the client is named `cvm_client`.
fix
Use `from tencentcloud.cvm.v20170312 import cvm_client` then instantiate `cvm_client.CvmClient()`.
tencentcloud.common.exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnsupportedOperation, message: this action not support this region
Region not available for the requested API or using wrong endpoint (e.g., Chinese mainland endpoint for international account).
fix
Verify region and endpoint. For international, use `*.tencentcloudapi.com` and check region list.
AttributeError: module 'tencentcloud' has no attribute 'cvm'
Forgot to install the SDK; installed wrong package (mainland version).
fix
Install `tencentcloud-sdk-python-intl-en` using pip.
Upgrade
Version history
3.1.91latest on PyPI · released May 7, 2026
Audit
Dependencies

No dependency data recorded yet.

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