Utils package

Submodules

LOGS_solutions.Utils.Exceptions module

exception LOGS_solutions.Utils.Exceptions.CsvReadError[source]

Bases: Exception

Fehler beim Lesen einer CSV-Datei.

exception LOGS_solutions.Utils.Exceptions.ExcelReadError[source]

Bases: Exception

Fehler beim Lesen einer Excel-Datei.

LOGS_solutions.Utils.ProgressBar module

class LOGS_solutions.Utils.ProgressBar.ProgressBar[source]

Bases: object

classmethod progress_bar(message)[source]

Creates a progress bar for the console.

Parameters:

message (str) – The message to display in front of the progress bar.

classmethod start_progressbar(message='')[source]

Starts the progress bar.

Parameters:

message (str) – The message to display in front of the progress bar.

classmethod stop_progressbar()[source]

Stops the progress bar.

classmethod update_processed_files()[source]

Updates the number of processed files.

LOGS_solutions.Utils.csv_utils module

LOGS_solutions.Utils.csv_utils.clean_csv_text(value)[source]

Remove control characters and escape double quotes for CSV fields. :rtype: str

Removes ASCII control characters (0–31, including

, , )

from CSV fields and escapes double quotes according to the CSV convention.

LOGS_solutions.Utils.path_utils module

LOGS_solutions.Utils.path_utils.validate_path(target_path)[source]

Validates the given paths.

Parameters:

target_path (Union[str, Path, None]) – The target path to validate.

Return type:

Path

Returns:

The absolute path for target.

Module contents