Registry / aws / tencentcloud-sdk-python-iot

tencentcloud-sdk-python-iot

JSON →
library3.0.1459pypypi✓ verified 83d ago

Provides Python access to Tencent Cloud IoT services (IoT Hub, IoT Explorer). Current version 3.0.1459. Released at the same cadence as TencentCloud SDK core (weekly).

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

IotClient
from tencentcloud.iot.v20180123 import iot_client
from tencentcloud_sdk_python_iot import ...
The package uses dashed names, but imports use dotted paths with versioned modules.
models
from tencentcloud.iot.v20180123 import models
from tencentcloud.iot import models
Models are version-specific; v20180123 is the current stable API version.

List IoT products using credentials from environment variables.

import os from tencentcloud.common import credential from tencentcloud.iot.v20180123 import iot_client, models secret_id = os.environ.get('TENCENTCLOUD_SECRET_ID', '') secret_key = os.environ.get('TENCENTCLOUD_SECRET_KEY', '') cred = credential.Credential(secret_id, secret_key) client = iot_client.IotClient(cred, 'ap-guangzhou') req = models.DescribeProductsRequest() resp = client.DescribeProducts(req) print(resp.to_json_string())
Debug
Known issues
gotchaImport paths include the API version (e.g., v20180123). Using an incorrect or outdated version will cause AttributeErrors.
fix
Check the official documentation for the correct API version string.
affects: all
gotchaThe package tencentcloud-sdk-python-iot does NOT include the common SDK; you must also install tencentcloud-sdk-python-common.
fix
Run: pip install tencentcloud-sdk-python-common
affects: all
deprecatedOld imports using camelCase module names (e.g., IotClient) are deprecated in favor of snake_case (iot_client).
fix
Use snake_case import: from tencentcloud.iot.v20180123 import iot_client
affects: >=3.0
breakingIn SDK v3+, the credential class moved to tencentcloud.common.credential (was tencentcloud.common).
fix
Use 'from tencentcloud.common import credential' then credential.Credential(...)
affects: >=2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud'
Missing common SDK package.
fix
Install both: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-iot
AttributeError: module 'tencentcloud.iot' has no attribute 'v20180123'
Using an incorrect API version string or the package is not installed.
fix
Verify API version from docs and install the correct package.
tencentcloud.common.exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnsupportedOperation
Using an endpoint that does not exist for the IoT service in the current region.
fix
Check region availability for IoT service.
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired: provides base client and credential handling
Agent activity
37 hits · last 30 days
node
35
Resources
tencentcloud-sdk-python-iot — pip install tencentcloud-sdk-python-iot · libregistry