Registry /
aws / tencentcloud-sdk-python-solar
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.
SolarClient
✓ from tencentcloud.solar.v20181011 import solar_client
✗ from tencentcloud.solar import SolarClient
Client is in a versioned subpackage
DescribeProjectRequest
✓ from tencentcloud.solar.v20181011 import models
Models are in the models module
Instantiate client and make a request to describe a solar project.
import os
from tencentcloud.common import credential
from tencentcloud.solar.v20181011 import solar_client, models
try:
cred = credential.Credential(
os.environ.get('TENCENTCLOUD_SECRET_ID', ''),
os.environ.get('TENCENTCLOUD_SECRET_KEY', '')
)
client = solar_client.SolarClient(cred, 'ap-guangzhou')
req = models.DescribeProjectRequest()
req.ProjectId = 'your_project_id'
resp = client.DescribeProject(req)
print(resp.to_json_string())
except Exception as e:
print('Error:', e)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.solar'
The 'tencentcloud-sdk-python-solar' package not installed, or installed without the common package.
fixRun: pip install tencentcloud-sdk-python-solar tencentcloud-sdk-python-common
tencentcloud.common.exception.TencentCloudSDKException: The SecretId is not found
Environment variables TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY not set.
fixSet secret id and key via environment variables or pass directly.
Upgrade
Version history
3.0.1394latest on PyPI · released Jun 4, 2025
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for authentication and base client