{"id":28326,"library":"tencentcloud-sdk-python-clb","title":"Tencent Cloud CLB SDK for Python","description":"Official Tencent Cloud SDK for Cloud Load Balancer (CLB). Version 3.1.82. Released on a regular cadence aligned with Tencent Cloud API updates.","status":"active","version":"3.1.82","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","sdk","clb","load-balancer"],"install":[{"cmd":"pip install tencentcloud-sdk-python-clb","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Common SDK utilities (client, credential, profile)","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"The SDK is organized by product and version; always import the specific module for CLB.","wrong":"import tencentcloud-sdk-python-clb","symbol":"ClbClient","correct":"from tencentcloud.clb.v20180317 import clb_client"},{"note":"The version (v20180317) is part of the module path; omitting it causes ImportError.","wrong":"from tencentcloud.clb import ClbClient","symbol":"ClbClient","correct":"from tencentcloud.clb.v20180317 import clb_client"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\nfrom tencentcloud.clb.v20180317 import clb_client, models\n\nSecretId = os.environ.get('TENCENTCLOUD_SECRET_ID', '')\nSecretKey = os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n\ncred = credential.Credential(SecretId, SecretKey)\nhttpProfile = HttpProfile()\nhttpProfile.endpoint = \"clb.tencentcloudapi.com\"\nclientProfile = ClientProfile(httpProfile=httpProfile)\nclient = clb_client.ClbClient(cred, 'ap-guangzhou', clientProfile)\n\nreq = models.DescribeLoadBalancersRequest()\nresp = client.DescribeLoadBalancers(req)\nprint(resp.to_json_string())","lang":"python","description":"Quickstart: Create a CLB client and list load balancers."},"warnings":[{"fix":"Use `from tencentcloud.clb.v20180317 import clb_client`.","message":"Do not import the SDK using the package name `tencentcloud-sdk-python-clb`; use the module path `tencentcloud.clb.v20180317`.","severity":"gotcha","affected_versions":"all"},{"fix":"Use official region IDs from Tencent Cloud documentation.","message":"The old `ap-shenzhen` region ID is deprecated; use `ap-guangzhou` or other valid regions.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Update imports to include the versioned module path (v20180317).","message":"Version 3.x reorganized modules; previously working imports like `from tencentcloud.clb import ClbClient` will break.","severity":"breaking","affected_versions":"3.0.0 and later"}],"env_vars":null,"search_vec":"'3.1.82':17 'align':23 'api':27 'balanc':14,34 'cadenc':22 'clb':3,15,31 'cloud':2,9,12,26 'load':13,33 'load-balanc':32 'offici':7 'python':6 'regular':21 'releas':18 'sdk':4,10,30 'tencent':1,8,25 'tencentcloud':29 'updat':28 'version':16","created_at":"2026-05-09T05:54:55.449875+00:00","updated_at":"2026-05-09T05:54:55.449875+00:00","problems":[{"fix":"Run `pip install tencentcloud-sdk-python-clb tencentcloud-sdk-python-common`","cause":"Installed wrong package or missing dependency `tencentcloud-sdk-python-common`","error":"ModuleNotFoundError: No module named 'tencentcloud.clb'"},{"fix":"Use: `from tencentcloud.clb.v20180317 import clb_client`","cause":"Incorrect import path: missing version subpackage","error":"ImportError: cannot import name 'ClbClient' from 'tencentcloud.clb'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/TencentCloud/tencentcloud-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tencentcloud-sdk-python-clb/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}