Registry / aws / tencentcloud-sdk-python-tcr

tencentcloud-sdk-python-tcr

JSON →
library3.1.88pypypi✓ verified 86d ago

Official Tencent Cloud SDK for the Container Registry (TCR) service. Version 3.1.88 provides Python bindings for TCR API operations. Released as part of the tencentcloud-sdk-python family with frequent updates tracking the cloud API.

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

TcrClient
from tencentcloud.tcr.v20190924 import tcr_client
from tcr import TcrClient
Old import pattern without versioned module
models
from tencentcloud.tcr.v20190924 import models
import models
Models must be imported from the versioned path

List TCR instances. Requires SecretId and SecretKey set in environment variables.

import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.tcr.v20190924 import tcr_client, models try: cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = tcr_client.TcrClient(cred, 'ap-guangzhou') req = models.DescribeInstancesRequest() resp = client.DescribeInstances(req) print(resp.to_json_string()) except TencentCloudSDKException as err: print(err)
Debug
Known issues
breakingAlways use the versioned import path (v20190924). The SDK is generated per API version and imports without the version may break.
fix
Use 'from tencentcloud.tcr.v20190924 import tcr_client' instead of 'from tencentcloud.tcr import tcr_client'.
affects: All versions
breakingThe common SDK package (tencentcloud-sdk-python-common) must be installed separately. It is not an automatic dependency of the TCR package.
fix
Run 'pip install tencentcloud-sdk-python-common' before using the TCR client.
affects: All versions
gotchaRegion parameter is required when initializing the client. Leaving it empty may cause unexpected behavior.
fix
Always provide region as the second argument to TcrClient (e.g., 'ap-guangzhou').
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named tencentcloud.common.exception
Missing tencentcloud-sdk-python-common package.
fix
Run 'pip install tencentcloud-sdk-python-common'.
from tencentcloud.tcr.v20190924 import tcr_client ImportError: cannot import name 'tcr_client' from 'tencentcloud.tcr.v20190924'
Incorrect import path; the module might be named differently.
fix
Check the exact module structure; the correct import is 'from tencentcloud.tcr.v20190924 import tcr_client' where the module file is named 'tcr_client.py'.
tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] The region is not supported
Region parameter is missing or invalid.
fix
Provide a valid region string, e.g., 'ap-guangzhou' or 'ap-beijing'.
Upgrade
Version history
3.1.88latest on PyPI · released Apr 28, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCommon SDK package required for authentication and base client
Agent activity
36 hits · last 30 days
node
34
Resources