{"id":28378,"library":"tencentcloud-sdk-python-yunsou","title":"Tencent Cloud Yunsou SDK for Python","description":"Tencent Cloud Yunsou (Cloud Search) SDK for Python, part of the official Tencent Cloud SDK family. Current version 3.0.1459. Released frequently alongside other Tencent Cloud services.","status":"active","version":"3.0.1459","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","cloud-search","yunsou","sdk"],"install":[{"cmd":"pip install tencentcloud-sdk-python-yunsou","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Required for client initialization and authentication","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Old imports omitted version subpackage causing AttributeError","wrong":"from tencentcloud.yunsou import YunsouClient","symbol":"YunsouClient","correct":"from tencentcloud.yunsou.v20180504 import yunsou_client"}],"quickstart":{"code":"from tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.yunsou.v20180504 import yunsou_client, models\n\ntry:\n    cred = credential.Credential(secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''), secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', ''))\n    client = yunsou_client.YunsouClient(cred, \"ap-guangzhou\")\n    req = models.DataSearchRequest()\n    req.ResourceId = \"your_resource_id\"\n    req.SearchQuery = \"test\"\n    resp = client.DataSearch(req)\n    print(resp.to_json_string())\nexcept TencentCloudSDKException as err:\n    print(err)","lang":"python","description":"Initialize client and perform a search query."},"warnings":[{"fix":"Use correct import: from tencentcloud.yunsou.v20180504 import yunsou_client","message":"Import paths changed in v3.x: must include the API version (e.g., v20180504) in the import path. Old style imports will raise ImportError.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Set environment variables or use credential.Credential with env vars.","message":"Environment variable TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY are preferred over hardcoded credentials.","severity":"deprecated","affected_versions":"all"},{"fix":"Always pass a valid region string when initializing the client.","message":"The YunsouClient requires a region parameter (e.g., 'ap-guangzhou'). Some products default to a region, but yunsou does not. Missing region will cause a credential or connection error.","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":"Install tencentcloud-sdk-python-yunsou and import as shown in quickstart.","cause":"Using import path without version or missing installation of the specific package.","error":"ModuleNotFoundError: No module named 'tencentcloud.yunsou.v20180504'"},{"fix":"Use correct path: from tencentcloud.yunsou.v20180504 import yunsou_client","cause":"Importing from wrong module level (e.g., from tencentcloud.yunsou import YunsouClient).","error":"AttributeError: module 'tencentcloud.yunsou' has no attribute 'YunsouClient'"},{"fix":"Verify ResourceId from Tencent Cloud Console. Ensure the resource is active.","cause":"The ResourceId provided does not exist or is misconfigured.","error":"TencentCloudSDKException: InvalidParameterValue.ResourceIdNotFound"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}