{"id":28345,"library":"tencentcloud-sdk-python-mvj","title":"Tencent Cloud MVJ SDK for Python","description":"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.","status":"active","version":"3.0.1416","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","mvj","sdk","cloud"],"install":[{"cmd":"pip install tencentcloud-sdk-python-mvj","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required for common client and credential handling.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Older versions used a different import path. Always include the API version (v20190926) in the path.","wrong":"from tencentcloud.mvj import MvjClient","symbol":"MvjClient","correct":"from tencentcloud.mvj.v20190926 import mvj_client"},{"note":"The correct symbol is inside the mvj_client module, not directly in the version package.","wrong":"from tencentcloud.mvj.v20190926 import MvjClient","symbol":"MvjClient","correct":"from tencentcloud.mvj.v20190926.mvj_client import MvjClient"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.mvj.v20190926 import mvj_client, models\n\n# Replace with your actual SecretId and SecretKey\ncred = credential.Credential(\n    os.environ.get('TENCENTCLOUD_SECRET_ID', ''),\n    os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n)\nclient = mvj_client.MvjClient(cred, \"ap-guangzhou\")\nreq = models.MarketingValueJudgementRequest()\nparams = {\n    \"AccountType\": 1,\n    \"Uid\": \"test_uid\",\n    \"UserIp\": \"8.8.8.8\",\n    \"PostTime\": 1234567890,\n    \"AssociateAccount\": \"test_account\",\n    \"NickName\": \"test_nick\",\n    \"PhoneNumber\": \"1234567890\",\n    \"EmailAddress\": \"test@example.com\",\n    \"RegisterTime\": 1234567890\n}\nreq.from_json_string(params)\nresp = client.MarketingValueJudgement(req)\nprint(resp.to_json_string())","lang":"python","description":"Quickstart to call MarketingValueJudgement API."},"warnings":[{"fix":"Run: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-mvj","message":"The 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).","severity":"gotcha","affected_versions":"all"},{"fix":"Use: from tencentcloud.mvj.v20190926 import mvj_client","message":"The correct import path includes the API version (v20190926). Attempting to import from tencentcloud.mvj directly will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Change imports from old v2 style to new v3 style as shown in the quickstart.","message":"SDK 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.","severity":"breaking","affected_versions":"3.x"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install the service package: pip install tencentcloud-sdk-python-mvj","cause":"The MVJ package is not installed, or you are trying to import directly from the top-level tencentcloud package.","error":"ModuleNotFoundError: No module named 'tencentcloud.mvj'"},{"fix":"Import from tencentcloud.mvj.v20190926.mvj_client import MvjClient","cause":"The class MvjClient is inside the mvj_client module, not directly in the version package.","error":"ImportError: cannot import name 'MvjClient' from 'tencentcloud.mvj.v20190926'"},{"fix":"Set TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables or pass correct credentials.","cause":"Missing or invalid SecretId/SecretKey in credentials.","error":"tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] The secret key not valid."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}