The official Tencent Cloud SDK module for the CWS (Cloud Web Scanner) service. This package is part of the larger tencentcloud-sdk-python ecosystem, version 3.0.1459. It provides Python bindings for the CWS API, enabling management of web scanning tasks, site verification, and vulnerability detection. Released irregularly alongside the main SDK.
pip install tencentcloud-sdk-python-cwsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lists all registered web scanning sites. Requires credentials set as environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY.
Always use 'v20180312' in the import path for the current CWS API.
Use Credential(secret_id, secret_key) or Credential(secret_id, secret_key, sessionToken='...') for temporary keys.
Replace resp.to_json_string() with resp.to_json() or str(resp).
Explicitly set the region via environment variable TENCENTCLOUD_REGION or pass a known region string.
Run: pip install tencentcloud-sdk-python-cws
Use: from tencentcloud.cws.v20180312 import cws_client
Set environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY properly. For temporary keys, also set TENCENTCLOUD_TOKEN.
Check CAM permissions in Tencent Cloud console, or use a key with full CWS access.