Tencent-cloud-sdk

Latest version: v0.2.7

Safety actively analyzes 613797 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.7

Description
Fix an issue where internal session and connector may not be released correctly when a client is collected by GC. The issue occurs mainly in the async programming and generally has no adverse effects.

New APIs
The caller can now explicitly close any client.
- `tencent.cloud.core.client.BaseClient.close(...)`
- `tencent.cloud.core.client.BaseClient.close_async(...)`

This is an example:
python
from tencent.cloud.serverless import functions
client = functions.Client()
client.close()


Upgrade
Upgrade to the latest version immediately to get bug fixes for your workload.
bash
pip3 install --upgrade tencent-cloud-sdk


Changed packages
- tencent-cloud-sdk-core
- tencent-cloud-sdk-serverless-function
- tencent-cloud-sdk-serverless-database

0.2.6

Fixed an issue where the built-in trusted CA root certificate bundle could not be found.

Changed packages
- tencent-cloud-sdk-common

0.2.5

The client now support setting an SSL context. If the trusted CA root certificate list provided by the global SSL context does not exist, the built-in one is used by default. The built-in trusted CA root certificate is provided by the common SSL context.

For example, the CPython runtime on macOS does not use the system trusted CA root certificate list, nor does it have it built in. In this case, the common SSL context will automatically replace the global SSL context and provide a built-in list of trusted CA root certificates. This solves the problem of not being able to verify the validity of the server SSL certificate in this case.

New APIs
- `tencent.cloud.core.client.get_common_ssl_context()`
- `tencent.cloud.core.client.set_common_ssl_context(...)`
- `tencent.cloud.core.client.has_common_ssl_context()`
- `tencent.cloud.core.client.need_common_ssl_context()`
- `tencent.cloud.core.client.BaseClient.set_ssl_context(...)`
- `tencent.cloud.core.client.BaseClient.ssl_context`

For more information, please read the API signature and comment.

Changed packages
- tencent-cloud-sdk-common
- tencent-cloud-sdk-core

0.2.4

Now, the SDK will automatically search for file credentials in multiple locations. The SDK will search the `.`, `./.tencent`, and `~/.tencent` directories in order and look for a file named `credentials.json` in them. This file contains 2 properties, `secretId` and `secretKey`. By default, environmental credentials take precedence.

This release resolves compatibility issues with Python 3.10 or later. Also, this version passes the compatibility test for CPython 3.6 ~ 3.10. If everything works, it will be the next stable release.

0.2.3

I have released community version 0.2.3 of Tencent Cloud SDK for Python. This release update dependency bundles to support Python 3.10 or later. There are no substantive changes to the core package. Also, a feature update of the serverless cloud function component package has merged.

Please note that this is a beta release. I do not recommend using it in the production environment. If there are no surprises, this version will soon be the next stable release. Only stable versions have on PyPI.

If you encounter problems when using this SDK, I will handle them.

0.2.2

😁 We are pleased to announce that this is the first official version of the Tencent Cloud SDK for Python that you can use for production environments. In version 0.2.2, we have added some new features.

Added
- We have added a component package called `tencent-cloud-sdk-serverless-database` for Tencent Cloud's serverless database product. With this package of components, you can quickly access serverless database products in an object-oriented programming manner.
- Added instance methods named `create_instance` and `create_instance_async` to the serverless database product client type, which allows you to create a serverless database instance.
- Added instance methods named `delete_instance` and `delete_instance_async` to the serverless database product client type, which allows you to delete (destroy) an already created serverless database instance.
- Added instance methods named `list_instances` and `list_instances_async` to the serverless database product client type, which allow you to retrieve serverless database instances that have been created in a given data center campus.
- Added instance methods named `set_instance_extranet` and `set_instance_extranet_async` to the serverless database product client type, which allows you to set whether a given serverless database instance is allowed to be accessed over the public network.

**Tips:** Technical details of the newly added API can be found in our [online technical documentation](https://smallso.gitbook.io/tencent-cloud-sdk/).

If you run into any issues, please let us know via the [Issue Tracker](https://github.com/nobody-night/tencent-cloud-sdk-python/issues) on GitHub.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.