Registry / observability / tencentcloud-sdk-python-ape

tencentcloud-sdk-python-ape

JSON →
library3.0.1459pypypi✓ verified 83d ago

Official Tencent Cloud SDK for the Ape (Application Performance Engine) service, providing APIs for application performance monitoring and management. Current version is 3.0.1459, with regular releases aligned to Tencent Cloud API updates.

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

ApeClient
from tencentcloud.ape.v20200513 import ape_client
from tencentcloud.ape import ApeClient
Versioned import is required; bare import omits API version
models
from tencentcloud.ape.v20200513 import models
import models
Models module is namespaced under the versioned package, not top-level

Basic usage: initialize credential, create client, call API. Replace region and request model as needed.

import os from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.ape.v20200513 import ape_client, models try: cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = ape_client.ApeClient(cred, 'ap-guangzhou') req = models.DescribeApeInstancesRequest() resp = client.DescribeApeInstances(req) print(resp.to_json_string()) except TencentCloudSDKException as e: print(e)
Debug
Known issues
breakingVersioned imports: `from tencentcloud.ape.v20200513 import ape_client` instead of `from tencentcloud.ape import ApeClient`. The latter is deprecated and may be removed.
fix
Use versioned import path including API version (e.g., v20200513).
affects: >=3.0.0
deprecatedOlder SDK versions (pre-3.0) used a different credential pattern. The `Credential` class now requires secret ID and key directly, not a profile object.
fix
Update to `credential.Credential('id', 'key')` and ensure SDK >=3.0.
affects: <3.0.0
gotchaEnvironment variables `TENCENTCLOUD_SECRET_ID` and `TENCENTCLOUD_SECRET_KEY` are not automatically read; you must pass them explicitly or use `EnvCredential`.
fix
Use `os.environ.get(...)` or `credential.Credential()` with the values, or use `credential.EnvCredential()` for automatic env loading.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.ape'
Missing or incorrect import path. The package is `tencentcloud-sdk-python-ape`, but import uses `tencentcloud.ape`.
fix
Ensure package is installed: `pip install tencentcloud-sdk-python-ape`. Import from `tencentcloud.ape.v20200513`.
TencentCloudSDKException: [TencentCloudSDKException] code: UnauthorizedOperation, message: not authenticated
Missing or invalid API credentials (SecretId/SecretKey).
fix
Set environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY, or pass them directly to Credential.
TypeError: __init__() missing 1 required positional argument: 'cred'
Client instantiation missing credential object or using deprecated signature.
fix
Use `ApeClient(cred, region)` where cred is a `Credential` instance.
Upgrade
Version history
3.0.1459latest on PyPI · released Sep 15, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for authentication and common client logic
Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources