For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workflow.list_tables

Workflow.list_tables(max_results=None, include_datasources=False) → list<Table>

Returns a list of tables within the workflow. By default, only tables created by the workflow are included. Set include_datasources=True to also include tables from the datasets and workflows that have been added to the workflow as datasources.

Parameters:

max_results : int, default None If specified, will only return up to max_results tables

include_datasources : bool, default False Whether to also return the tables from the workflow's datasources. Tables from a dataset will reflect the version selected for that datasource, and will be sample tables if the datasource is sampled.

Returns:

list<Table>

Examples:

workflow = redivis.user("imathews").workflow("example_workflow_climate_analysis")
tables = workflow.list_tables()

for table in tables:
    print(table.properties) # Properties will be populated with the table.list resource representation

# Also include tables from the workflow's datasources
all_tables = workflow.list_tables(include_datasources=True)

Was this helpful?