{"id":28332,"library":"tencentcloud-sdk-python-dts","title":"Tencent Cloud DTS SDK for Python","description":"Tencent Cloud DTS (Data Transmission Service) SDK for Python, part of the official tencentcloud-sdk-python ecosystem. Version 3.1.88 provides APIs to manage data migration, sync, and subscription tasks. The SDK follows a monthly release cadence aligned with the main tencentcloud-sdk-python package.","status":"active","version":"3.1.88","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","dts","migration","sdk","cloud"],"install":[{"cmd":"pip install tencentcloud-sdk-python-dts","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Common base SDK for authentication, HTTP transport, and models.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Direct import from the top-level package fails; must specify versioned submodule.","wrong":"from tencentcloud.dts import DtsClient","symbol":"DtsClient","correct":"from tencentcloud.dts.v20180330 import dts_client"},{"note":"Models must also come from the versioned submodule.","wrong":"from tencentcloud.dts import models","symbol":"CreateMigrateJobRequest","correct":"from tencentcloud.dts.v20180330 import models"}],"quickstart":{"code":"from tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.dts.v20180330 import dts_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 = dts_client.DtsClient(cred, 'ap-guangzhou')\n    req = models.DescribeMigrateJobsRequest()\n    resp = client.DescribeMigrateJobs(req)\n    print(resp.to_json_string())\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"Lists DTS migrate jobs. Set env vars TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY."},"warnings":[{"fix":"Use 'v20180330' for current DTS APIs. Check Tencent Cloud documentation for the exact version.","message":"API version path changed: Prior to 2022, the SDK used 'v20180330' as the API version. Older code may have used 'v20211206' or other versions; verify the correct version for your region.","severity":"breaking","affected_versions":"<=3.0.x"},{"fix":"Always use: from tencentcloud.dts.v20180330 import dts_client, models","message":"Models and client must be imported from the versioned subpackage. Importing from 'tencentcloud.dts' directly will raise ModuleNotFoundError.","severity":"gotcha","affected_versions":"All"},{"fix":"Use credential.Credential(secret_id='...', secret_key='...') instead of passing raw strings.","message":"Old credential initialization using SecretId/SecretKey strings directly is deprecated in favor of Credential() object.","severity":"deprecated","affected_versions":">=3.1.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install using 'pip install tencentcloud-sdk-python-dts' and ensure import path is 'from tencentcloud.dts.v20180330 import ...'","cause":"The package 'tencentcloud-sdk-python-dts' is not installed or the import path is wrong.","error":"ModuleNotFoundError: No module named 'tencentcloud.dts'"},{"fix":"Use 'from tencentcloud.dts.v20180330 import dts_client' after ensuring the SDK is installed.","cause":"Incorrect import; the top-level 'dts' module does not contain the versioned submodule directly.","error":"AttributeError: module 'tencentcloud.dts' has no attribute 'v20180330'"},{"fix":"Update the SDK to the latest version and use the models from the correct versioned subpackage.","cause":"Using an outdated API model that doesn't match the actual API schema.","error":"TencentCloudSDKException: [InvalidParameter] The parameter 'JobId' is not supported"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}