Download table data
structured_sheets.tables.download(strtable_id, TableDownloadParams**kwargs) -> BinaryResponseContent
GET/v1/structured-sheets/{structured_sheet_id}/tables/{table_id}/download
Download the table data in the specified format.
Available formats:
parquet: Apache Parquet columnar format (recommended for data analysis)csv: Comma-separated values (compatible with any spreadsheet application)
Download table data
import os
from deeptable import DeepTable
client = DeepTable(
api_key=os.environ.get("DEEPTABLE_API_KEY"), # This is the default and can be omitted
)
response = client.structured_sheets.tables.download(
table_id="tbl_01kfxgjd94fn9stqm45rqr2pnz",
structured_sheet_id="ss_01kfxgjd94fn9stqm42nejb627",
format="parquet",
)
print(response)
content = response.read()
print(content)