{"id":28347,"library":"tencentcloud-sdk-python-mps","title":"Tencent Cloud MPS SDK for Python","description":"Tencent Cloud Media Processing Service (MPS) Python SDK. Current version 3.1.92. Released as part of the tencentcloud-sdk-python monorepo; follows TencentCloud SDK release cadence (weekly updates).","status":"active","version":"3.1.92","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","mps","media-processing","sdk"],"install":[{"cmd":"pip install tencentcloud-sdk-python-mps","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core SDK common module required for authentication and API calls","package":"tencentcloud-sdk-python-common","optional":false},{"reason":"HTTP client for API requests","package":"requests","optional":false}],"imports":[{"note":"MpsClient is in the v20190612 subpackage, not the mps top-level","wrong":"from tencentcloud.mps import MpsClient","symbol":"MpsClient","correct":"from tencentcloud.mps.v20190612 import mps_client"},{"note":"Models are version-specific under v20190612","wrong":"from tencentcloud.mps import models","symbol":"models","correct":"from tencentcloud.mps.v20190612 import models"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.mps.v20190612 import mps_client, models\n\ncred = credential.Credential(\n    os.environ.get('TENCENTCLOUD_SECRET_ID', ''),\n    os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n)\nclient = mps_client.MpsClient(cred, \"ap-guangzhou\")\n\nreq = models.DescribeTasksRequest()\ntry:\n    resp = client.DescribeTasks(req)\n    print(resp.to_json_string())\nexcept Exception as e:\n    print(\"Error:\", e)","lang":"python","description":"Initialize MpsClient and call DescribeTasks"},"warnings":[{"fix":"Update imports to use versioned subpackage: `from tencentcloud.mps.v20190612 import mps_client, models`.","message":"SDK v3 introduced new package structure under tencentcloud.mps.v20190612. Code written for v2.x (tencentcloud-sdk-python < 3) using `from tencentcloud.mps import MpsClient` will break.","severity":"breaking","affected_versions":"<3.0"},{"fix":"Prefer using environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY, or use STS token.","message":"The old credential method using `credential.Credential(secret_id, secret_key)` is still supported but deprecated. New code should use `credential.Credential(secret_id, secret_key, token=...)` for STS or environment variables.","severity":"deprecated","affected_versions":"all"},{"fix":"Check region availability in Tencent Cloud documentation and ensure it matches your resource location.","message":"Region parameter is mandatory and must be a valid Tencent Cloud region (e.g., ap-guangzhou, ap-beijing). Using an incorrect region may result in 'InvalidParameter' 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":"Use: from tencentcloud.mps.v20190612 import mps_client","cause":"Using wrong import path for MpsClient. The class is located under the versioned subpackage.","error":"ImportError: cannot import name 'MpsClient' from 'tencentcloud.mps'"},{"fix":"Verify region (e.g., ap-guangzhou) and check that the API action (e.g., DescribeTasks) is available in the MPS documentation.","cause":"Often caused by an invalid region or unsupported API action for the MPS product.","error":"tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] InvalidParameter"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}