Registry / aws / tencentcloud-sdk-python-mariadb

tencentcloud-sdk-python-mariadb

JSON →
library3.1.40pypypi✓ verified 88d ago

Official Tencent Cloud SDK for accessing MariaDB services via the API. Current version 3.1.40, stable release. The SDK follows a predictable pattern per service, with package names mapping to `tencentcloud.${service}.${version}`.

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

MariadbClient
✓ from tencentcloud.mariadb.v20170312 import mariadb_client
✗ from tencentcloud.mariadb import MariadbClient
Version qualifier is required in import path. 20170312 is the API version.
models
✓ from tencentcloud.mariadb.v20170312 import models
✗ from tencentcloud.mariadb import models
Models must be imported from the versioned module.

List MariaDB instances using the MariaDB client.

import os from tencentcloud.common import credential from tencentcloud.mariadb.v20170312 import mariadb_client, models # Replace with your credentials or use environment variables cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = mariadb_client.MariadbClient(cred, 'ap-guangzhou') req = models.DescribeDBInstancesRequest() req.Limit = 10 resp = client.DescribeDBInstances(req) print(resp.to_json_string())
Debug
Known issues
gotchaThe import path includes the API version number. Using an incorrect version may lead to missing methods or attributes.
fix
Always use the versioned import path: `from tencentcloud.mariadb.v20170312 import ...`
affects: all
gotchaCredential environment variables are `TENCENTCLOUD_SECRET_ID` and `TENCENTCLOUD_SECRET_KEY`. Do not use the older `SECRET_ID` or `SECRET_KEY` prefixes.
fix
Set environment variables with `TENCENTCLOUD_` prefix or use the `Credential` constructor directly.
affects: >=3.0
deprecatedUsing `to_json_string()` on response objects is deprecated in newer SDK versions; prefer direct attribute access or the `__dict__` method.
fix
Access response attributes directly, e.g., `resp.TotalCount` instead of `resp.to_json_string()` if only specific fields are needed.
affects: >=3.1.30
Errors
Common errors & fixes
ImportError: cannot import name 'MariadbClient' from 'tencentcloud.mariadb'
Missing API version in import path.
fix
Use from tencentcloud.mariadb.v20170312 import mariadb_client
tencentcloud.exception.TencentCloudSDKException: [FailedOperation] The request has been cancelled
Expired or invalid credentials.
fix
Verify that TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables are correct and not expired.
Upgrade
Version history
3.1.40latest on PyPI · released Jan 29, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for credential handling and HTTP client.
requestsrequiredUsed for HTTP transport.
Agent activity
29 hits · last 30 days
node
28
Resources