Registry / http-networking / tencentcloud-sdk-python-domain

tencentcloud-sdk-python-domain

JSON →
library3.1.65pypypi✓ verified 84d ago

Official Tencent Cloud SDK for managing Domain services (e.g., domain registration, DNS management). Version 3.1.65. Release cadence is irregular, often bundled with other tencentcloud-sdk-python packages.

pip install tencentcloud-sdk-python-domain
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-domain
http-networkingpythonv3.1.65
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.

DomainClient
from tencentcloud.domain.v20180808 import domain_client
from tencentcloud.domain import DomainClient
The API version (v20180808) must be explicitly imported, not just the top-level package.
models
from tencentcloud.domain.v20180808 import models
from tencentcloud.domain import models
Same as above: models are version-specific.

Initialize client and list domain names. Requires valid credentials in environment variables.

import os from tencentcloud.common import credential from tencentcloud.domain.v20180808 import domain_client, models cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = domain_client.DomainClient(cred, "ap-guangzhou") req = models.DescribeDomainNameListRequest() resp = client.DescribeDomainNameList(req) print(resp)
Debug
Known issues
breakingIn version 3.x, the import paths changed from `tencentcloud.domain.v20180808` (no 'domain' after 'tencentcloud'). Older versions used `tencentcloud.domain.v20180808.domain_client`. The module name is now `domain_client` but it is inside the version package.
fix
Use `from tencentcloud.domain.v20180808 import domain_client` instead of `from tencentcloud.domain.v20180808.domain_client import DomainClient`.
affects: >=3.0.0
gotchaThe API version ('v20180808') must match the service version. Using an incorrect version will cause import errors or unexpected behavior.
fix
Always check the official API documentation for the correct version string (currently v20180808).
affects: all
gotchaThis package only contains the Domain service. It requires `tencentcloud-sdk-python-common` to be installed separately.
fix
Install `tencentcloud-sdk-python-common` or use `tencentcloud-sdk-python` (meta-package) to include all services.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.domain'
The wrong package installed; users often install only `tencentcloud-sdk-python` (meta) or forget the domain-specific package.
fix
Install the correct package: `pip install tencentcloud-sdk-python-domain`
AttributeError: module 'tencentcloud.domain.v20180808' has no attribute 'domain_client'
Importing the version module directly instead of importing the domain_client submodule.
fix
Use `from tencentcloud.domain.v20180808 import domain_client`
tencentcloud.common.exception.TencentCloudSDKException: InvalidParameter
Missing or incorrect request parameters (e.g., required fields not set).
fix
Refer to the official API documentation for the correct request structure, and set all required fields via the model object.
Upgrade
Version history
3.1.65latest on PyPI · released Mar 30, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredCore SDK base classes and credential handling.
Agent activity
39 hits · last 30 days
node
28
OpenAI (training)
1
Resources
tencentcloud-sdk-python-domain — pip install tencentcloud-sdk-python-domain · libregistry