edit-icon download-icon

Preface

Last Updated: Apr 08, 2018

This document describes how to install and use Python SDK v4.x.x for Table Store. Make sure that you have activated Alibaba Cloud Table Store and created an AccessKeyID and AccessKeySecret.

  • If you have not activated Alibaba Cloud Table Store or want to learn more about this service, visit the Table Store product homepage.

  • If you have not created an AccessKeyID and AccessKeySecret, log on to the AccessKey console to create an AccessKey.

Download the SDK

For more information about version history, click here.

Compatibility

  • Table Store is compatible with Python SDK v4.x.x.

  • Table Store is incompatible with Python SDK v2.x.x, because Python SDK v2.x.x supports out-of-order primary keys. Detailed incompatibilities include:

    • The name of the SDK is changed from ots2 to tablestore.
    • The Client.create_table operation is added with the TableOptions parameter.
    • The primary_key parameter for the put_row, get_row, and update_row operations is changed from the dict type to the list type to guarantee sequence.
    • The attribute_columns parameter for the put_row and update_row operations is changed from the dict type to the list type.
    • The attribute_columns parameter for the put_row and update_row operations is added with timestamp.
    • The get_row and get_range operations are added with the max_version and time_range parameters. At lease one parameter must exist.
    • The put_row, update_row, and delete_row operations are added with the return_type parameter. Currently, only RT_PK is supported, indicating that the returned value contains the PK value of the current row.
    • The values returned by the put_row, update_row, and delete_row operations are added with return_row. If return_type is specified as RT_PK in a request, return_row contains the PK value of the current row.

Version

Latest version: 4.3.0

Thank you! We've received your feedback.