All Products
Search
Document Center

Tablestore:List data tables

Last Updated:Jun 25, 2025

This topic describes how to use Tablestore SDK for Python to list the names of data tables in a Tablestore instance.

Prerequisites

A client is initialized. For more information, see Initialize a Tablestore client.

Method description

def list_table(self)

Sample code

The following sample code demonstrates how to query the list of data tables in an instance and print the table names.

try:
    list_response = client.list_table()
    for table_name in list_response:
        print(table_name)
except Exception as e:
    print("list table failed. %s" % e)

References

Query the names of time series tables