Exemplo n.º 1
0
def save_csv_file_datawarehouse(func: Callable[[str], str]) -> None:
    """
    Create CSV files for Datawarehouse and save them on the storage backend.

    :returns:
    """
    csv_files = list()
    with tempfile.TemporaryDirectory() as tmp_dir:
        try:
            csv_files.append(func(tmp_dir))
        except EnvironmentError:
            pass

        # Store the CSV files to the correct location
        save_csv_files(csv_files=csv_files, using='datawarehouse')
Exemplo n.º 2
0
def save_csv_file_tdo(func: Callable[[str], str]) -> None:
    """
    Create CSV files for teamdata openbare ruimte and save them on the storage backend.

    :returns:
    """
    csv_files = list()
    with tempfile.TemporaryDirectory() as tmp_dir:
        try:
            csv_files.append(func(tmp_dir))
        except EnvironmentError:
            pass

        # Store the CSV files to the correct location
        save_csv_files(csv_files=csv_files, using='tdo', path='SIA/')