Registry / aws / tencentcloud-sdk-python-yunsou

tencentcloud-sdk-python-yunsou

JSON →
library3.0.1459pypypi✓ verified 84d ago

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.

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

YunsouClient
from tencentcloud.yunsou.v20180504 import yunsou_client
from tencentcloud.yunsou import YunsouClient
Old imports omitted version subpackage causing AttributeError

Initialize client and perform a search query.

from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.yunsou.v20180504 import yunsou_client, models try: cred = credential.Credential(secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''), secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', '')) client = yunsou_client.YunsouClient(cred, "ap-guangzhou") req = models.DataSearchRequest() req.ResourceId = "your_resource_id" req.SearchQuery = "test" resp = client.DataSearch(req) print(resp.to_json_string()) except TencentCloudSDKException as err: print(err)
Debug
Known issues
breakingImport paths changed in v3.x: must include the API version (e.g., v20180504) in the import path. Old style imports will raise ImportError.
fix
Use correct import: from tencentcloud.yunsou.v20180504 import yunsou_client
affects: >=3.0.0
deprecatedEnvironment variable TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY are preferred over hardcoded credentials.
fix
Set environment variables or use credential.Credential with env vars.
affects: all
gotchaThe 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.
fix
Always pass a valid region string when initializing the client.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.yunsou.v20180504'
Using import path without version or missing installation of the specific package.
fix
Install tencentcloud-sdk-python-yunsou and import as shown in quickstart.
AttributeError: module 'tencentcloud.yunsou' has no attribute 'YunsouClient'
Importing from wrong module level (e.g., from tencentcloud.yunsou import YunsouClient).
fix
Use correct path: from tencentcloud.yunsou.v20180504 import yunsou_client
TencentCloudSDKException: InvalidParameterValue.ResourceIdNotFound
The ResourceId provided does not exist or is misconfigured.
fix
Verify ResourceId from Tencent Cloud Console. Ensure the resource is active.
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for client initialization and authentication
Agent activity
18 hits · last 30 days
node
14
Amazon
1
Resources