Registry / aws / tccli
library3.1.88.1pypypi✓ verified 84d ago

Official CLI for Tencent Cloud API services. Version 3.1.88.1. Maintained actively by Tencent Cloud. Follows a monthly release cadence with service updates and bug fixes.

pip install tccli
INSTALL
IMPORT
SIG · TCCLI
T
tccli
awspythonv3.1.88.1
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.

tccli
from tccli import configure
import tccli
Direct import of top-level module may fail; use submodule imports

Configure credentials from environment variables and call CVM DescribeInstances.

from tccli import configure configure.set(SecretId=os.environ.get('TENCENT_SECRET_ID', ''), SecretKey=os.environ.get('TENCENT_SECRET_KEY', ''), region='ap-guangzhou') from tccli.services.cvm import DescribeInstances result = DescribeInstances() print(result)
tccli --version
Debug
Known issues
breakingIn v3.0+, the import path for service modules changed from `tccli.services.xxx` to `tccli.services.xxx`. Old imports like `from tccli.cvm import ...` will fail.
fix
Use `from tccli.services.service_name import ...`
affects: >=3.0.0
breakingPython 3.6 support dropped in v3.1.0. Requires Python 3.7+.
fix
Upgrade Python to 3.7 or later
affects: >=3.1.0
gotchaCredentials must be set via `configure.set()` before any service call. Calling API without configuration raises 'SecretId cannot be empty'.
fix
Always call `configure.set()` at the start of your script or use environment variables.
affects: all
Errors
Common errors & fixes
tccli.exceptions.TencentCloudSDKException: [TencentCloudSDKException] code: InvalidParameter.RepeatedParameter, message: SecretId cannot be empty.
Missing or incorrect credentials configuration.
fix
Set credentials via `configure.set(SecretId='...', SecretKey='...')` or export TENCENT_SECRET_ID and TENCENT_SECRET_KEY environment variables.
ModuleNotFoundError: No module named 'tccli.services'
Old import pattern used or package not installed correctly.
fix
Install tccli with `pip install tccli` and use `from tccli.services import ...`
Upgrade
Version history
3.1.88.1latest on PyPI · released May 7, 2026
Audit
Dependencies
tencentcloud-sdk-pythonrequiredSDK used for API calls
Agent activity
40 hits · last 30 days
node
30
Resources