Registry / aws / tencentcloud-sdk-python-mvj

tencentcloud-sdk-python-mvj

JSON →
library3.0.1416pypypi✓ verified 84d ago

Official Tencent Cloud SDK for the Marketing Value Judgment (MVJ) service. Provides Python bindings to interact with Tencent Cloud MVJ APIs. Current version: 3.0.1416. Released irregularly alongside the broader tencentcloud-sdk-python.

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

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())
Debug
Known issues
gotchaThe tencentcloud-sdk-python is composed of many small packages. Ensure you install the specific service package (tencentcloud-sdk-python-mvj) and also the common package (tencentcloud-sdk-python-common).
fix
Run: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-mvj
affects: all
gotchaThe correct import path includes the API version (v20190926). Attempting to import from tencentcloud.mvj directly will fail.
fix
Use: from tencentcloud.mvj.v20190926 import mvj_client
affects: all
breakingSDK v3.x splits services into separate packages and changes import structures compared to v2.x. If upgrading from v2.x, all imports must be updated.
fix
Change imports from old v2 style to new v3 style as shown in the quickstart.
affects: 3.x
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.
fix
Install 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.
fix
Import 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.
fix
Set 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.
Agent activity
29 hits · last 30 days
node
28
Resources
tencentcloud-sdk-python-mvj — pip install tencentcloud-sdk-python-mvj · libregistry