{"id":28327,"library":"tencentcloud-sdk-python-cmq","title":"Tencent Cloud CMQ SDK for Python","description":"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.","status":"active","version":"3.0.1459","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","cmq","message-queue","cloud"],"install":[{"cmd":"pip install tencentcloud-sdk-python-cmq","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Core SDK components (credential, HTTP, auth) required for all services.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Wrong import path; the client class resides under the versioned subpackage.","wrong":"from tencentcloud.cmq import CmqClient","symbol":"CmqClient","correct":"from tencentcloud.cmq.v20190304 import cmq_client"}],"quickstart":{"code":"from tencentcloud.common import credential\nfrom tencentcloud.cmq.v20190304 import cmq_client, models\n\ncred = credential.Credential(secret_id=\"your-secret-id\", secret_key=\"your-secret-key\")\nclient = cmq_client.CmqClient(cred, \"ap-guangzhou\")\nreq = models.CreateQueueRequest()\nreq.QueueName = \"test-queue\"\nresp = client.CreateQueue(req)\nprint(resp.RequestId)","lang":"python","description":"Initialize a CMQ client with credential and region, then create a queue."},"warnings":[{"fix":"Import from the versioned subpackage: from tencentcloud.cmq.v20190304 import cmq_client","message":"Do NOT import from 'tencentcloud.cmq' without version; always use 'tencentcloud.cmq.v20190304'. The top-level cmq package does NOT contain client classes.","severity":"gotcha","affected_versions":"all 3.x"},{"fix":"Run: pip install tencentcloud-sdk-python-common","message":"The 'tencentcloud-sdk-python-common' package is an implicit dependency but not automatically installed by pip. You must install it separately.","severity":"gotcha","affected_versions":"all 3.x"},{"fix":"Use Python 3.6+ or install the legacy SDK (tencentcloud-sdk-python) with version <3.0.","message":"SDK 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).","severity":"breaking","affected_versions":"3.0+"}],"env_vars":null,"search_vec":"'3.0.1459':23 'client':25 'cloud':2,8,17,29,50 'cmq':3,9,32,46 'current':21 'interfac':26 'larg':37 'messag':30,48 'message-queu':47 'multi':39 'multi-packag':38 'packag':40 'part':13,34 'provid':24 'python':6,12,18 'queue':31,49 'regular':43 'releas':44 'sdk':4,10,19,41 'servic':33 'suit':20 'tencent':1,7,16,28 'tencentcloud':45 'version':22","created_at":"2026-05-09T05:54:55.614828+00:00","updated_at":"2026-05-09T05:54:55.614828+00:00","problems":[{"fix":"pip install tencentcloud-sdk-python-common","cause":"Missing 'tencentcloud-sdk-python-common' which provides core package.","error":"ModuleNotFoundError: No module named 'tencentcloud'"},{"fix":"pip install tencentcloud-sdk-python-cmq","cause":"The SDK packages are installed separately; cmq v20190304 is not included unless you install 'tencentcloud-sdk-python-cmq'.","error":"AttributeError: module 'tencentcloud.cmq' has no attribute 'v20190304'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://www.tencentcloud.com","github":"https://github.com/TencentCloud/tencentcloud-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tencentcloud-sdk-python-cmq/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws","communication"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}