Registry / aws / tencentcloud-sdk-python-gme

tencentcloud-sdk-python-gme

JSON →
library3.1.42pypypi✓ verified 83d ago

Official Python SDK for Tencent Cloud Game Multimedia Engine (GME), enabling voice chat, voice message, and voice recognition services. Current version 3.1.42. Release cadence is irregular, typically following the main tencentcloud-sdk-python releases.

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

GmeClient
from tencentcloud.gme.v20180711 import gme_client as gme_client_module
from tencentcloud.gme import GmeClient
GmeClient is in the module namespace, not directly in tencentcloud.gme.
DescribeApplicationDataRequest
from tencentcloud.gme.v20180711 import models
from tencentcloud.gme import models
Versioned API (v20180711) must be included; older import is broken.

Initialize client and call DescribeApplicationData with credentials from environment variables.

from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.gme.v20180711 import gme_client, models SecretId = os.environ.get('SECRET_ID', '') SecretKey = os.environ.get('SECRET_KEY', '') cred = credential.Credential(SecretId, SecretKey) client = gme_client.GmeClient(cred, "ap-guangzhou") req = models.DescribeApplicationDataRequest() req.AppId = "your_app_id" try: resp = client.DescribeApplicationData(req) print(resp.to_json_string()) except TencentCloudSDKException as err: print(err)
Debug
Known issues
breakingIn version 3.0+, the API module version must be specified (e.g., gme.v20180711). Omitting the version causes import errors.
fix
Always use the full import path: tencentcloud.gme.v20180711.gme_client
affects: >=3.0.0
deprecatedThe credential.Credential() constructor with three arguments (including region) is deprecated. Use Credential(SecretId, SecretKey) and pass region to client separately.
fix
cred = credential.Credential(SecretId, SecretKey); client = gme_client.GmeClient(cred, 'ap-guangzhou')
affects: >=3.1.0
gotchaMany GME API response objects contain nested structures; calling to_json_string() fails if the object has unset optional fields. Use json.dumps with custom encoder to avoid AttributeError.
fix
Use json.dumps(resp, default=lambda o: o.__dict__) or convert to dict via vars() before serialization.
affects: All
Errors
Common errors & fixes
ImportError: cannot import name 'GmeClient' from 'tencentcloud.gme'
Incorrect import path; GmeClient is inside the versioned submodule.
fix
from tencentcloud.gme.v20180711 import gme_client; then use gme_client.GmeClient
AttributeError: module 'tencentcloud.common.credential' has no attribute 'Credential'
Importing credential incorrectly; use credential.Credential, not credential.
fix
from tencentcloud.common import credential; cred = credential.Credential(SecretId, SecretKey)
TencentCloudSDKException: [TencentCloudSDKException] code: UnauthorizedOperation message: Invalid secretId
SecretId or SecretKey is incorrect or not set.
fix
Set SECRET_ID and SECRET_KEY environment variables, or hardcode valid credentials for testing.
Upgrade
Version history
3.1.42latest on PyPI · released Feb 2, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCommon SDK components (authentication, HTTP transport)
Agent activity
39 hits · last 30 days
node
32
OpenAI (training)
1
Resources