dlt._workspace.helpers.dashboard.utils
get_dashboard_config_sections
def get_dashboard_config_sections(
        p: Optional[dlt.Pipeline]) -> Tuple[str, ...]
Find dashboard config section layout for a particular pipeline or for active run context type.
resolve_dashboard_config
def resolve_dashboard_config(
        p: Optional[dlt.Pipeline]) -> DashboardConfiguration
Resolve the dashboard configuration
get_trace_file_path
def get_trace_file_path(pipeline_name: str, pipelines_dir: str) -> Path
Get the path to the pickle file for a pipeline
get_pipeline_last_run
def get_pipeline_last_run(pipeline_name: str, pipelines_dir: str) -> float
Get the last run of a pipeline
get_local_pipelines
def get_local_pipelines(
        pipelines_dir: str = None,
        sort_by_trace: bool = True,
        addtional_pipelines: List[str] = None
) -> Tuple[str, List[Dict[str, Any]]]
Get the local pipelines directory and the list of pipeline names in it.
Arguments:
- pipelines_dirstr, optional - The local pipelines directory. Defaults to get_dlt_pipelines_dir().
- sort_by_tracebool, optional - Whether to sort the pipelines by the latet timestamp of trace. Defaults to True.
Returns:
Tuple[str, List[str]]: The local pipelines directory and the list of pipeline names in it.
get_pipeline
def get_pipeline(pipeline_name: str, pipelines_dir: str) -> dlt.Pipeline
Get a pipeline by name.
Arguments:
- pipeline_namestr - The name of the pipeline to get.
Returns:
- dlt.Pipeline- The pipeline.
get_destination_config
def get_destination_config(
        pipeline: dlt.Pipeline) -> DestinationClientConfiguration
Get the destination config of a pipeline.
schemas_to_table_items
def schemas_to_table_items(schemas: Iterable[Schema],
                           default_schema_name: str) -> List[Dict[str, Any]]
Convert a list of schemas to a list of table items.
pipeline_details
def pipeline_details(c: DashboardConfiguration, pipeline: dlt.Pipeline,
                     pipelines_dir: str) -> List[Dict[str, Any]]
Get the details of a pipeline.
remote_state_details
def remote_state_details(pipeline: dlt.Pipeline) -> List[Dict[str, Any]]
Get the remote state details of a pipeline.
create_table_list
def create_table_list(c: DashboardConfiguration,
                      pipeline: dlt.Pipeline,
                      selected_schema_name: str = None,
                      show_internals: bool = False,
                      show_child_tables: bool = True,
                      show_row_counts: bool = False) -> List[Dict[str, Any]]
Create a list of tables for the pipeline.
Arguments:
- pipeline_namestr - The name of the pipeline to create the table list for.
create_column_list
def create_column_list(
        c: DashboardConfiguration,
        pipeline: dlt.Pipeline,
        table_name: str,
        selected_schema_name: str = None,
        show_internals: bool = False,
        show_type_hints: bool = True,
        show_other_hints: bool = False,
        show_custom_hints: bool = False) -> List[Dict[str, Any]]
Create a list of columns for a table.
Arguments:
- pipeline_namestr - The name of the pipeline to create the column list for.
- table_namestr - The name of the table to create the column list for.