Registry / aws / tencentcloud-sdk-python-clb

tencentcloud-sdk-python-clb

JSON →
library3.1.82pypypi✓ verified 83d ago

Official Tencent Cloud SDK for Cloud Load Balancer (CLB). Version 3.1.82. Released on a regular cadence aligned with Tencent Cloud API updates.

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

ClbClient
from tencentcloud.clb.v20180317 import clb_client
import tencentcloud-sdk-python-clb
The SDK is organized by product and version; always import the specific module for CLB.
ClbClient
from tencentcloud.clb.v20180317 import clb_client
from tencentcloud.clb import ClbClient
The version (v20180317) is part of the module path; omitting it causes ImportError.

Quickstart: Create a CLB client and list load balancers.

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.clb.v20180317 import clb_client, models SecretId = os.environ.get('TENCENTCLOUD_SECRET_ID', '') SecretKey = os.environ.get('TENCENTCLOUD_SECRET_KEY', '') cred = credential.Credential(SecretId, SecretKey) httpProfile = HttpProfile() httpProfile.endpoint = "clb.tencentcloudapi.com" clientProfile = ClientProfile(httpProfile=httpProfile) client = clb_client.ClbClient(cred, 'ap-guangzhou', clientProfile) req = models.DescribeLoadBalancersRequest() resp = client.DescribeLoadBalancers(req) print(resp.to_json_string())
Debug
Known issues
gotchaDo not import the SDK using the package name `tencentcloud-sdk-python-clb`; use the module path `tencentcloud.clb.v20180317`.
fix
Use `from tencentcloud.clb.v20180317 import clb_client`.
affects: all
deprecatedThe old `ap-shenzhen` region ID is deprecated; use `ap-guangzhou` or other valid regions.
fix
Use official region IDs from Tencent Cloud documentation.
affects: >=3.0.0
breakingVersion 3.x reorganized modules; previously working imports like `from tencentcloud.clb import ClbClient` will break.
fix
Update imports to include the versioned module path (v20180317).
affects: 3.0.0 and later
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.clb'
Installed wrong package or missing dependency `tencentcloud-sdk-python-common`
fix
Run `pip install tencentcloud-sdk-python-clb tencentcloud-sdk-python-common`
ImportError: cannot import name 'ClbClient' from 'tencentcloud.clb'
Incorrect import path: missing version subpackage
fix
Use: `from tencentcloud.clb.v20180317 import clb_client`
Upgrade
Version history
3.1.82latest on PyPI · released Apr 20, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCommon SDK utilities (client, credential, profile)
Agent activity
23 hits · last 30 days
node
20
Resources