Registry / gcp / tencentcloud-sdk-python-dts

tencentcloud-sdk-python-dts

JSON →
library3.1.88pypypi✓ verified 84d ago

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.

pip install tencentcloud-sdk-python-dts
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-dts
gcppythonv3.1.88
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.

DtsClient
from tencentcloud.dts.v20180330 import dts_client
from tencentcloud.dts import DtsClient
Direct import from the top-level package fails; must specify versioned submodule.
CreateMigrateJobRequest
from tencentcloud.dts.v20180330 import models
from tencentcloud.dts import models
Models must also come from the versioned submodule.

Lists DTS migrate jobs. Set env vars TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY.

from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.dts.v20180330 import dts_client, models try: cred = credential.Credential( secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''), secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = dts_client.DtsClient(cred, 'ap-guangzhou') req = models.DescribeMigrateJobsRequest() resp = client.DescribeMigrateJobs(req) print(resp.to_json_string()) except TencentCloudSDKException as e: print(e)
Debug
Known issues
breakingAPI 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.
fix
Use 'v20180330' for current DTS APIs. Check Tencent Cloud documentation for the exact version.
affects: <=3.0.x
gotchaModels and client must be imported from the versioned subpackage. Importing from 'tencentcloud.dts' directly will raise ModuleNotFoundError.
fix
Always use: from tencentcloud.dts.v20180330 import dts_client, models
affects: All
deprecatedOld credential initialization using SecretId/SecretKey strings directly is deprecated in favor of Credential() object.
fix
Use credential.Credential(secret_id='...', secret_key='...') instead of passing raw strings.
affects: >=3.1.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.dts'
The package 'tencentcloud-sdk-python-dts' is not installed or the import path is wrong.
fix
Install using 'pip install tencentcloud-sdk-python-dts' and ensure import path is 'from tencentcloud.dts.v20180330 import ...'
AttributeError: module 'tencentcloud.dts' has no attribute 'v20180330'
Incorrect import; the top-level 'dts' module does not contain the versioned submodule directly.
fix
Use 'from tencentcloud.dts.v20180330 import dts_client' after ensuring the SDK is installed.
TencentCloudSDKException: [InvalidParameter] The parameter 'JobId' is not supported
Using an outdated API model that doesn't match the actual API schema.
fix
Update the SDK to the latest version and use the models from the correct versioned subpackage.
Upgrade
Version history
3.1.88latest on PyPI · released Apr 28, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCommon base SDK for authentication, HTTP transport, and models.
Agent activity
41 hits · last 30 days
node
36
Amazon
1
OpenAI (training)
1
Resources
tencentcloud-sdk-python-dts — pip install tencentcloud-sdk-python-dts · libregistry