{"id":28365,"library":"tencentcloud-sdk-python-tem","title":"Tencent Cloud TEM SDK for Python","description":"Tencent Cloud Tencent Elastic Microservice (TEM) SDK for Python. Version 3.0.1459. Release cadence follows TencentCloud SDK releases, often weekly or on demand.","status":"active","version":"3.0.1459","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","tem","cloud","sdk","paas"],"install":[{"cmd":"pip install tencentcloud-sdk-python-tem","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Required for credentials and client initialization","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"You must import the specific versioned module (v20210701) and use tem_client.TemClient","wrong":"from tencentcloud.tem import TemClient","symbol":"TemClient","correct":"from tencentcloud.tem.v20210701 import tem_client, models"},{"note":"Always import the models submodule from the same versioned path","wrong":null,"symbol":"models","correct":"from tencentcloud.tem.v20210701 import models"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.tem.v20210701 import tem_client, models\n\ntry:\n    cred = credential.Credential(os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', ''))\n    client = tem_client.TemClient(cred, \"ap-guangzhou\")\n    req = models.DescribeApplicationsRequest()\n    resp = client.DescribeApplications(req)\n    print(resp.to_json_string())\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"List all TEM applications using versioned client and models."},"warnings":[{"fix":"Use 'from tencentcloud.tem.v20210701 import tem_client, models'","message":"The SDK requires importing versioned subpackages (v20210701). Do not use unversioned imports like 'from tencentcloud.tem import tem_client'.","severity":"gotcha","affected_versions":"all"},{"fix":"pip install tencentcloud-sdk-python-tem (do not rely on the umbrella SDK)","message":"The TEM SDK is bundled separately from the main tencentcloud-sdk-python. You must install tencentcloud-sdk-python-tem specifically.","severity":"gotcha","affected_versions":"all"},{"fix":"Set env vars or pass credential.Credential(secret_id, secret_key) explicitly","message":"Credentials must be passed explicitly or via environment variables (TENCENTCLOUD_SECRET_ID, TENCENTCLOUD_SECRET_KEY). The SDK does not auto-detect from Tencent Cloud metadata by default.","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":"pip install tencentcloud-sdk-python-tem","cause":"Forgetting to install the TEM-specific SDK package; only the common SDK is installed.","error":"ModuleNotFoundError: No module named 'tencentcloud.tem'"},{"fix":"Use: from tencentcloud.tem.v20210701 import tem_client, models","cause":"Importing from the wrong path (unversioned import) instead of the versioned subpackage.","error":"AttributeError: module 'tencentcloud.tem' has no attribute 'tem_client'"},{"fix":"Verify TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY are set and that the account has TEM access.","cause":"Invalid or missing credentials, or the API key does not have permission for TEM.","error":"tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnauthorizedOperation"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}