Registry /
aws / tencentcloud-sdk-python-mvj
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.
MvjClient
✓ from tencentcloud.mvj.v20190926 import mvj_client
✗ from tencentcloud.mvj import MvjClient
Older versions used a different import path. Always include the API version (v20190926) in the path.
MvjClient
✓ from tencentcloud.mvj.v20190926.mvj_client import MvjClient
✗ from tencentcloud.mvj.v20190926 import MvjClient
The correct symbol is inside the mvj_client module, not directly in the version package.
Quickstart to call MarketingValueJudgement API.
import os
from tencentcloud.common import credential
from tencentcloud.mvj.v20190926 import mvj_client, models
# Replace with your actual SecretId and SecretKey
cred = credential.Credential(
os.environ.get('TENCENTCLOUD_SECRET_ID', ''),
os.environ.get('TENCENTCLOUD_SECRET_KEY', '')
)
client = mvj_client.MvjClient(cred, "ap-guangzhou")
req = models.MarketingValueJudgementRequest()
params = {
"AccountType": 1,
"Uid": "test_uid",
"UserIp": "8.8.8.8",
"PostTime": 1234567890,
"AssociateAccount": "test_account",
"NickName": "test_nick",
"PhoneNumber": "1234567890",
"EmailAddress": "test@example.com",
"RegisterTime": 1234567890
}
req.from_json_string(params)
resp = client.MarketingValueJudgement(req)
print(resp.to_json_string())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.mvj'
The MVJ package is not installed, or you are trying to import directly from the top-level tencentcloud package.
fixInstall the service package: pip install tencentcloud-sdk-python-mvj
ImportError: cannot import name 'MvjClient' from 'tencentcloud.mvj.v20190926'
The class MvjClient is inside the mvj_client module, not directly in the version package.
fixImport from tencentcloud.mvj.v20190926.mvj_client import MvjClient
tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] The secret key not valid.
Missing or invalid SecretId/SecretKey in credentials.
fixSet TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables or pass correct credentials.
Upgrade
Version history
3.0.1416latest on PyPI · released Jul 5, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for common client and credential handling.