Registry / aws / tencentcloud-sdk-python-solar

tencentcloud-sdk-python-solar

JSON →
library3.0.1394pypypi✓ verified 88d ago

Tencent Cloud Solar SDK for Python enables developers to interact with Tencent Cloud Solar services. Version 3.0.1394. Released as part of the Tencent Cloud SDK family with frequent updates.

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

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)
Debug
Known issues
gotchaThe API version (v20181011) is hardcoded in imports. Check the latest version in documentation if API changes.
fix
Always use the version as shown in the official docs; currently v20181011.
affects: >=3.0.0
deprecatedThe solar service might be deprecated or replaced. Confirm in Tencent Cloud console.
fix
Verify service availability on Tencent Cloud official site.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.solar'
The 'tencentcloud-sdk-python-solar' package not installed, or installed without the common package.
fix
Run: 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.
fix
Set 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
Agent activity
27 hits · last 30 days
node
26
Resources