Skip to main content
Version: devel

dlt.helpers.studio.utils

resolve_studio_config

def resolve_studio_config(p: dlt.Pipeline) -> StudioConfiguration

View source on GitHub

Resolve the studio configuration

get_local_pipelines

def get_local_pipelines(
pipelines_dir: str = None,
sort_by_trace: bool = True) -> Tuple[str, List[Dict[str, Any]]]

View source on GitHub

Get the local pipelines directory and the list of pipeline names in it.

Arguments:

  • pipelines_dir str, optional - The local pipelines directory. Defaults to get_dlt_pipelines_dir().
  • sort_by_trace bool, 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

View source on GitHub

Get a pipeline by name.

Arguments:

  • pipeline_name str - The name of the pipeline to get.

Returns:

  • dlt.Pipeline - The pipeline.

pipeline_details

def pipeline_details(pipeline: dlt.Pipeline) -> List[Dict[str, Any]]

View source on GitHub

Get the details of a pipeline.

create_table_list

def create_table_list(c: StudioConfiguration,
pipeline: dlt.Pipeline,
show_internals: bool = False,
show_child_tables: bool = True,
show_row_counts: bool = False) -> List[Dict[str, str]]

View source on GitHub

Create a list of tables for the pipeline.

Arguments:

  • pipeline_name str - The name of the pipeline to create the table list for.

create_column_list

def create_column_list(
c: StudioConfiguration,
pipeline: dlt.Pipeline,
table_name: str,
show_internals: bool = False,
show_type_hints: bool = True,
show_other_hints: bool = False,
show_custom_hints: bool = False) -> List[Dict[str, Any]]

View source on GitHub

Create a list of columns for a table.

Arguments:

  • pipeline_name str - The name of the pipeline to create the column list for.
  • table_name str - The name of the table to create the column list for.

clear_query_cache

def clear_query_cache(pipeline: dlt.Pipeline) -> None

View source on GitHub

Clear the query cache and history

get_query_result

@functools.cache
def get_query_result(pipeline: dlt.Pipeline, query: str) -> pd.DataFrame

View source on GitHub

Get the result of a query.

get_row_counts

@functools.cache
def get_row_counts(pipeline: dlt.Pipeline,
load_id: str = None) -> Dict[str, int]

View source on GitHub

Get the row counts for a pipeline.

Arguments:

  • pipeline dlt.Pipeline - The pipeline to get the row counts for.
  • load_id str - The load id to get the row counts for.

get_loads

@functools.cache
def get_loads(c: StudioConfiguration,
pipeline: dlt.Pipeline,
limit: int = 100) -> Any

View source on GitHub

Get the loads of a pipeline.

get_schema_by_version

@functools.cache
def get_schema_by_version(pipeline: dlt.Pipeline, version_hash: str) -> Schema

View source on GitHub

Get the schema version of a pipeline.

trace_overview

def trace_overview(c: StudioConfiguration,
trace: Dict[str, Any]) -> List[Dict[str, Any]]

View source on GitHub

Get the overview of a trace.

trace_execution_context

def trace_execution_context(c: StudioConfiguration,
trace: Dict[str, Any]) -> List[Dict[str, Any]]

View source on GitHub

Get the execution context of a trace.

trace_steps_overview

def trace_steps_overview(c: StudioConfiguration,
trace: Dict[str, Any]) -> List[Dict[str, Any]]

View source on GitHub

Get the steps overview of a trace.

trace_resolved_config_values

def trace_resolved_config_values(
c: StudioConfiguration, trace: Dict[str, Any]) -> List[Dict[str, Any]]

View source on GitHub

Get the resolved config values of a trace.

trace_step_details

def trace_step_details(c: StudioConfiguration, trace: Dict[str, Any],
step_id: str) -> List[Dict[str, Any]]

View source on GitHub

Get the details of a step.

style_cell

def style_cell(row_id: str, name: str, __: Any) -> Dict[str, str]

View source on GitHub

Style a cell in a table.

Arguments:

  • row_id str - The id of the row.
  • name str - The name of the column.
  • __ Any - The value of the cell.

Returns:

Dict[str, str]: The css style of the cell.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.