Tencent Cloud TIC SDK for Python
raw JSON → 3.0.1416 verified Sat May 09 auth: no python
Official Tencent Cloud SDK for the TIC (Tencent Infrastructure as Code) service. Version 3.0.1416 provides client classes for managing stacks and versions. Part of the tencentcloud-sdk-python family, updated frequently alongside the service API.
pip install tencentcloud-sdk-python-tic Common errors
error ModuleNotFoundError: No module named 'tencentcloud-sdk-python-tic' ↓
cause Trying to import the distribution name directly
fix
Use correct module path: from tencentcloud.tic.v20201117 import tic_client
error AttributeError: module 'tencentcloud.tic' has no attribute 'v20201117' ↓
cause Wrong API version or missing subpackage
fix
Install the correct version: pip install tencentcloud-sdk-python-tic==3.0.1416, then import from tencentcloud.tic.v20201117.
Warnings
gotcha Import path uses versioned subpackage (v20201117) – verify the API version matches your service region. ↓
fix Check latest API version in official docs; import accordingly.
gotcha Credentials must be set via environment variables or Credential object; missing credentials causes authentication failure with vague error. ↓
fix Set TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY, or pass Credential object explicitly.
deprecated Older SDK used 'tic_v20201117' style imports; now prefer 'tic.v20201117' subpackage without underscore. ↓
fix Update import path to use dots and remove underscores.
Imports
- TicClient wrong
import tencentcloud-sdk-python-ticcorrectfrom tencentcloud.tic.v20201117 import tic_client - models
from tencentcloud.tic.v20201117 import models
Quickstart
from tencentcloud.common import credential
from tencentcloud.tic.v20201117 import tic_client, models
cred = credential.Credential(
os.environ.get('TENCENTCLOUD_SECRET_ID', ''),
os.environ.get('TENCENTCLOUD_SECRET_KEY', '')
)
client = tic_client.TicClient(cred, "ap-guangzhou")
req = models.DescribeStacksRequest()
resp = client.DescribeStacks(req)
print(resp)