{"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,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}