Registry / aws / tencentcloud-sdk-python-mps

tencentcloud-sdk-python-mps

JSON →
library3.1.92pypypi✓ verified 84d ago

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).

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

MpsClient
from tencentcloud.mps.v20190612 import mps_client
from tencentcloud.mps import MpsClient
MpsClient is in the v20190612 subpackage, not the mps top-level
models
from tencentcloud.mps.v20190612 import models
from tencentcloud.mps import models
Models are version-specific under v20190612

Initialize MpsClient and call DescribeTasks

import os from tencentcloud.common import credential from tencentcloud.mps.v20190612 import mps_client, models cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = mps_client.MpsClient(cred, "ap-guangzhou") req = models.DescribeTasksRequest() try: resp = client.DescribeTasks(req) print(resp.to_json_string()) except Exception as e: print("Error:", e)
Debug
Known issues
breakingSDK 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.
fix
Update imports to use versioned subpackage: `from tencentcloud.mps.v20190612 import mps_client, models`.
affects: <3.0
deprecatedThe 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.
fix
Prefer using environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY, or use STS token.
affects: all
gotchaRegion 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.
fix
Check region availability in Tencent Cloud documentation and ensure it matches your resource location.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'MpsClient' from 'tencentcloud.mps'
Using wrong import path for MpsClient. The class is located under the versioned subpackage.
fix
Use: from tencentcloud.mps.v20190612 import mps_client
tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] InvalidParameter
Often caused by an invalid region or unsupported API action for the MPS product.
fix
Verify region (e.g., ap-guangzhou) and check that the API action (e.g., DescribeTasks) is available in the MPS documentation.
Upgrade
Version history
3.1.92latest on PyPI · released May 7, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCore SDK common module required for authentication and API calls
requestsrequiredHTTP client for API requests
Agent activity
39 hits · last 30 days
node
36
OpenAI (training)
1
Resources
tencentcloud-sdk-python-mps — pip install tencentcloud-sdk-python-mps · libregistry