{"id":28328,"library":"tencentcloud-sdk-python-dlc","title":"Tencent Cloud DLC SDK for Python","description":"Official Tencent Cloud SDK for Data Lake Compute (DLC) service. Provides APIs to manage DLC resources like tasks, databases, tables, and queries. Current version: 3.1.87. Follows Tencent Cloud SDK release cycle with frequent minor updates.","status":"active","version":"3.1.87","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencent-cloud","dlc","data-lake","sdk"],"install":[{"cmd":"pip install tencentcloud-sdk-python-dlc","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core authentication and HTTP client","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Versioned module path is required; top-level DlcClient does not exist","wrong":"from tencentcloud.dlc import DlcClient","symbol":"DlcClient","correct":"from tencentcloud.dlc.v20210125 import dlc_client"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.dlc.v20210125 import dlc_client, models\n\ntry:\n    cred = credential.Credential(\n        secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''),\n        secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n    )\n    client = dlc_client.DlcClient(cred, \"ap-guangzhou\")\n    req = models.DescribeTasksRequest()\n    resp = client.DescribeTasks(req)\n    print(resp.to_json_string())\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"Initializes client and fetches list of Data Lake Compute tasks"},"warnings":[{"fix":"Use 'from tencentcloud.dlc.v20210125 import dlc_client'","message":"The SDK uses a versioned module path. Always use 'tencentcloud.dlc.v20210125' — not 'tencentcloud.dlc' directly.","severity":"gotcha","affected_versions":"all"},{"fix":"Set TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables, or use STS temporary credentials.","message":"Older authentication patterns using Credential Token (secretKey) without environment or STS are discouraged. Use environment variables or assume role.","severity":"deprecated","affected_versions":"all"},{"fix":"Pass a valid region string (e.g., 'ap-guangzhou', 'ap-beijing') when constructing DlcClient.","message":"Region parameter is required for DLC client. 'ap-guangzhou' is a common default, but ensure you use the correct region for your DLC resources.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.1.87':31 'api':18 'cloud':2,9,34,44 'comput':14 'current':29 'cycl':37 'data':12,47 'data-lak':46 'databas':25 'dlc':3,15,21,45 'follow':32 'frequent':39 'lake':13,48 'like':23 'manag':20 'minor':40 'offici':7 'provid':17 'python':6 'queri':28 'releas':36 'resourc':22 'sdk':4,10,35,49 'servic':16 'tabl':26 'task':24 'tencent':1,8,33,43 'tencent-cloud':42 'updat':41 'version':30","created_at":"2026-05-09T05:54:56.601549+00:00","updated_at":"2026-05-09T05:54:56.601549+00:00","problems":[{"fix":"Run 'pip install tencentcloud-sdk-python-dlc' to install the DLC-specific module.","cause":"Subpackage not installed or import path incorrect. The SDK's main package 'tencentcloud-sdk-python-dlc' must be installed separately.","error":"AttributeError: module 'tencentcloud.dlc' has no attribute 'v20210125'"},{"fix":"Verify credentials via environment variables or Credential constructor. Ensure the account has DLC access.","cause":"Invalid or missing SecretId/SecretKey, or insufficient permissions for DLC API.","error":"tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnauthorizedOperation message: ..."},{"fix":"Use 'from tencentcloud.dlc.v20210125 import dlc_client' and then 'client = dlc_client.DlcClient(...)'. Do not import DlcClient directly.","cause":"Incorrect import path. The correct path is 'from tencentcloud.dlc.v20210125 import dlc_client'.","error":"ImportError: cannot import name 'DlcClient' from 'tencentcloud.dlc.v20210125.dlc_client'"}],"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":"https://www.tencentcloud.com/products/dlc","github":"https://github.com/TencentCloud/tencentcloud-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tencentcloud-sdk-python-dlc/","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}}