Registry / aws / tencentcloud-sdk-python-cmq

tencentcloud-sdk-python-cmq

JSON →
library3.0.1459pypypi✓ verified 88d ago

Tencent Cloud CMQ SDK for Python, part of the Tencent Cloud Python SDK suite. Current version 3.0.1459. Provides client interfaces for Tencent Cloud Message Queue (CMQ) services. Part of a large multi-package SDK with regular releases.

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

CmqClient
✓ from tencentcloud.cmq.v20190304 import cmq_client
✗ from tencentcloud.cmq import CmqClient
Wrong import path; the client class resides under the versioned subpackage.

Initialize a CMQ client with credential and region, then create a queue.

from tencentcloud.common import credential from tencentcloud.cmq.v20190304 import cmq_client, models cred = credential.Credential(secret_id="your-secret-id", secret_key="your-secret-key") client = cmq_client.CmqClient(cred, "ap-guangzhou") req = models.CreateQueueRequest() req.QueueName = "test-queue" resp = client.CreateQueue(req) print(resp.RequestId)
Debug
Known issues
gotchaDo NOT import from 'tencentcloud.cmq' without version; always use 'tencentcloud.cmq.v20190304'. The top-level cmq package does NOT contain client classes.
fix
Import from the versioned subpackage: from tencentcloud.cmq.v20190304 import cmq_client
affects: all 3.x
gotchaThe 'tencentcloud-sdk-python-common' package is an implicit dependency but not automatically installed by pip. You must install it separately.
fix
Run: pip install tencentcloud-sdk-python-common
affects: all 3.x
breakingSDK v3 dropped support for Python 2.7. If you are still on Python 2, pin to legacy v1 SDK (tencentcloud-sdk-python-intl-en or cn).
fix
Use Python 3.6+ or install the legacy SDK (tencentcloud-sdk-python) with version <3.0.
affects: 3.0+
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud'
Missing 'tencentcloud-sdk-python-common' which provides core package.
fix
pip install tencentcloud-sdk-python-common
AttributeError: module 'tencentcloud.cmq' has no attribute 'v20190304'
The SDK packages are installed separately; cmq v20190304 is not included unless you install 'tencentcloud-sdk-python-cmq'.
fix
pip install tencentcloud-sdk-python-cmq
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCore SDK components (credential, HTTP, auth) required for all services.
Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources