Registry / aws / tencentcloud-sdk-python-gpm

tencentcloud-sdk-python-gpm

JSON →
library3.0.1416pypypi✓ verified 88d ago

Official Tencent Cloud SDK for Game Player Matchmaking (GPM) service. Version 3.0.1416, released regularly alongside other Tencent Cloud services. Enables integration with matchmaking rules, tickets, and matches.

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

GpmClient
✓ from tencentcloud.gpm.v20200820 import gpm_client
✗ from tencentcloud.gpm import GpmClient
Direct import without versioned module path fails. Must include v20200820.
models (e.g., CreateMatchRequest)
✓ from tencentcloud.gpm.v20200820 import models
✗ from tencentcloud.gpm.v20200820.models import CreateMatchRequest
Import models module, then use models.CreateMatchRequest() to avoid circular imports.

Initialize client and call DescribeMatch with credentials from environment variables.

import os from tencentcloud.common import credential from tencentcloud.gpm.v20200820 import gpm_client, models cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID'), os.environ.get('TENCENTCLOUD_SECRET_KEY') ) client = gpm_client.GpmClient(cred, "ap-guangzhou") req = models.DescribeMatchRequest() req.MatchCode = "your-match-code" resp = client.DescribeMatch(req) print(resp.to_json_string())
Debug
Known issues
breakingThe SDK uses versioned API paths (e.g., v20200820). Incorrect import leads to AttributeError.
fix
Use from tencentcloud.gpm.v20200820 import gpm_client
affects: all
gotchaModels must be imported via `models` module; directly importing individual model classes may cause circular import errors.
fix
from tencentcloud.gpm.v20200820 import models; then use models.CreateMatchRequest()
affects: all
deprecatedOlder documentation may reference `tencentcloud-sdk-python` directly. The package is now split per service.
fix
Install service-specific package: pip install tencentcloud-sdk-python-gpm
affects: <=3.0.1416
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.gpm'
Missing the service-specific package or incorrect import path.
fix
Install package: pip install tencentcloud-sdk-python-gpm; then use from tencentcloud.gpm.v20200820 import gpm_client
AttributeError: module 'tencentcloud.gpm.v20200820' has no attribute 'gpm_client'
Typo in module name (e.g., 'gpmclient' instead of 'gpm_client') or import of wrong symbol.
fix
import gpm_client from tencentcloud.gpm.v20200820 import gpm_client
Upgrade
Version history
3.0.1416latest on PyPI · released Jul 5, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for credentials and HTTP transport
Agent activity
27 hits · last 30 days
node
26
Resources