Common package

Submodules

LOGS_solutions.GenerateDatasetReport.Common.FileHandler module

class LOGS_solutions.GenerateDatasetReport.Common.FileHandler.FileHandler[source]

Bases: object

A class to handle file operations.

The class provides methods to prepare a name as a file name.

static clean_csv_text(name)[source]
static clean_filename(name)[source]

Prepare the name as a file name. Remove unwanted special characters and replace a space with _.

Parameters:

name (str) – The name to be used as the file name.

Return type:

str

Returns:

The prepared filename.

LOGS_solutions.GenerateDatasetReport.Common.PathValidator module

class LOGS_solutions.GenerateDatasetReport.Common.PathValidator.PathValidator[source]

Bases: object

This class provides methods to validate paths.

static validate_path(target_path)[source]

Validates the given paths.

Parameters:

target_path (str) – The target path to validate.

Return type:

str

Returns:

The absolute path for target.

Module contents