Skip to content

Releases: devmiek/tencent-cloud-sdk-python

v0.2.7

16 Jan 19:55
Compare
Choose a tag to compare

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:

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.

pip3 install --upgrade tencent-cloud-sdk

Changed packages

  • tencent-cloud-sdk-core
  • tencent-cloud-sdk-serverless-function
  • tencent-cloud-sdk-serverless-database

v0.2.6

27 Oct 12:55
Compare
Choose a tag to compare

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

Changed packages

  • tencent-cloud-sdk-common

v0.2.5

02 Jun 09:20
f098a87
Compare
Choose a tag to compare

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

Tencent Cloud SDK - v0.2.4

05 Jan 15:19
4b02c49
Compare
Choose a tag to compare

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.

Tencent Cloud SDK - v0.2.3 - Beta

18 Dec 13:01
Compare
Choose a tag to compare
Pre-release

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.

Tencent Cloud SDK - v0.2.2

14 Apr 10:57
Compare
Choose a tag to compare

😁 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.

If you run into any issues, please let us know via the Issue Tracker on GitHub.

Tencent Cloud SDK - v0.1.7-Beta

06 Apr 12:27
Compare
Choose a tag to compare
Pre-release

😁 We are very pleased to announce that this is the 7th Beta release of the Tencent Cloud SDK for Python. In version 0.1.7 Beta we have added some new features and fixed known issues.

Added

  • We've added an advanced feature called waitable operations to the Core package of the Tencent Cloud SDK for Python, which will allow developers to wait for a resource operation to complete (e.g., create serverless cloud functions) in a synchronous or asynchronous programming fashion.

Changed

  • The create_function_async and create_function instance methods on the serverless cloud function product client now have return values of the data type OperationWaitable, which will allow developers to wait for the serverless cloud function resource to actually be created.
  • The create_layer_async and create_layer instance methods on the serverless cloud function product client will now no longer return a layer version number with a data type Int, but rather a waitable object with a data type OperationWaitable, which will allow the developer to wait for the layer resource to actually be created.
  • The delete_layer_async and delete_layer instance methods on the serverless cloud product client now allow the parameter layer_version to be ignored or set to None, which will automatically delete all versions of the layer.

Tips: If the original return value of some high-level API has been replaced by a waitable object, the developer can obtain it by accessing the result property of the waitable object.

If you run into any issues, please let us know via the Issue Tracker on GitHub.

Tencent Cloud SDK - v0.1.2-Beta

11 Feb 13:16
Compare
Choose a tag to compare
Pre-release

😃 We are very pleased to announce that this is the first beta version of the Tencent Cloud SDK for Python, and if everything goes well, we will release a stable version in the near future.

If you run into any issues, please let us know via the Issue Tracker on GitHub.

Tencent Cloud SDK - v0.1.6-Beta

11 Mar 09:54
Compare
Choose a tag to compare
Pre-release

😁 We are very pleased to announce this is the 6th beta release of the Tencent Cloud SDK for Python. In this version we have added some features:

Added

  • We added a new advanced feature to the serverless cloud function product client, which is called a serverless cloud function routine.
  • Add instance methods routine_invoke and routine_invoke_async for serverless cloud function product clients to call the specified routine for a given serverless cloud function.
  • Add instance methods seletc_routine and select_routine_async for serverless cloud function product clients to create Python native synchronous or asynchronous function instances for a given serverless cloud function routine.
  • Add instance methods bind_routine and bind_routine_async for serverless cloud function product clients to bind a Python native synchronous or asynchronous function to a given serverless cloud function routine.
  • Add a class for serverless cloud function products. IntegrateDispatch is used to implement the serverless cloud function routine dispatcher.
  • Add function use_routine_dispatcher for serverless cloud function products to enable the routine dispatch framework for the current serverless cloud function.

Changed

  • Change some of the instance method notes applicable to the serverless cloud function product client to make it easier for developers to understand.

Tips: How to organize serverless cloud function code using advanced features called serverless cloud function routines provided by Tencent Cloud SDK for Python? See our best practices.

If you run into any issues, please let us know via the Issue Tracker on GitHub.

Tencent Cloud SDK - v0.1.5-Beta

06 Mar 11:14
Compare
Choose a tag to compare
Pre-release

🤔 We are very pleased to announce this is the 5th beta release of the Tencent Cloud SDK for Python. In the 0.1.5 Beta, we have added some new features and fixed known bugs.

Fixed:

  • Fixed the issue that the serverless cloud function product client public methods list_functions and list_functions_async could not correctly identify the serverless cloud function tag information.
  • Fixed the problem that the serverless cloud function product client public methods get_function_info and get_function_info_async could not correctly identify the serverless cloud function tag information.
  • Fixed the issue that the serverless cloud function client public methods get_function_results and get_function_results_async tag filtering did not take effect.

Changed:

  • Optimize environment credential refresh logic. Now only environment credentials that have temporary access credentials Token information set will perform auto-refresh logic.
  • Optimize the execution logic of some code...

Added:

  • Added client public method set_access_proxies, which can now set or remove proxy server configuration for all client type instances at runtime.

If you run into any issues, please let us know via the Issue Tracker on GitHub.