{"id":28359,"library":"tencentcloud-sdk-python-ssm","title":"Tencent Cloud SSM SDK for Python","description":"Official Tencent Cloud SDK for Secrets Manager (SSM). Provides programmatic access to create, retrieve, update, and delete secrets via TencentCloud API. Currently at version 3.1.70, released roughly weekly.","status":"active","version":"3.1.70","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","ssm","secrets-manager","cloud-sdk"],"install":[{"cmd":"pip install tencentcloud-sdk-python-ssm","lang":"bash","label":"Latest stable release"}],"dependencies":[{"reason":"Required for client initialization and authentication","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Must include versioned subpackage v20190923; top-level import fails","wrong":"from tencentcloud.ssm import SsmClient","symbol":"SsmClient","correct":"from tencentcloud.ssm.v20190923 import ssm_client"},{"note":"Request/Response models are in models module","symbol":"DescribeSecretStatusRequest","correct":"from tencentcloud.ssm.v20190923 import models"}],"quickstart":{"code":"from tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.ssm.v20190923 import ssm_client, models\n\ntry:\n    cred = credential.Credential(\n        os.environ.get('TENCENTCLOUD_SECRET_ID', ''),\n        os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n    )\n    client = ssm_client.SsmClient(cred, 'ap-guangzhou')\n    req = models.DescribeSecretStatusRequest()\n    req.SecretName = 'MySecret'\n    resp = client.DescribeSecretStatus(req)\n    print(resp)\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"Initializes a SSM client and queries the status of a secret."},"warnings":[{"fix":"Use 'from tencentcloud.ssm.v20190923 import ssm_client, models'.","message":"In v3.x, all API calls use the versioned namespace (v20190923). Importing from unversioned path (e.g., tencentcloud.ssm) will raise ImportError.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use threading or multiprocessing for concurrent calls.","message":"Python SDK does not support async/await natively. All methods are synchronous and block the calling thread.","severity":"gotcha","affected_versions":"all"},{"fix":"Verify region string matches TencentCloud documentation. Common values: ap-guangzhou, ap-singapore, na-siliconvalley.","message":"Region parameter is required when creating the client. Incorrect region (e.g., us-east-1 instead of ap-guangzhou) results in authentication or not-found errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install both packages: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-ssm. Then import as 'from tencentcloud.ssm.v20190923 import ssm_client'.","cause":"Incorrect import path or missing library installation.","error":"ModuleNotFoundError: No module named 'tencentcloud.ssm'"},{"fix":"Use a valid region: e.g., 'ap-guangzhou', 'ap-singapore', 'na-siliconvalley'.","cause":"The region string passed to client constructor is invalid or not supported by SSM.","error":"tencentcloud.common.exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnsupportedOperation, message: the region is not supported"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}