Module pipelines.rj_escritorio.data_catalog.utils

Helper functions for generating a data catalog from BigQuery.

Functions

def get_bigquery_client(mode: str = 'prod') ‑> google.cloud.bigquery.client.Client

Get BigQuery client.

Returns

BigQuery client.

def write_data_to_gsheets(worksheet: gspread.worksheet.Worksheet, data: List[List[Any]], start_cell: str = 'A1')

Write data to a Google Sheets worksheet.

Args

worksheet
Google Sheets worksheet.
data
List of lists of data.
start_cell
Cell to start writing data.