anormalratingsystem.utilities package¶
Submodules¶
anormalratingsystem.utilities.file_handling module¶
file_handling.py: File handling utilities for the application.
- anormalratingsystem.utilities.file_handling.read_csv(file_path: Path) list[dict[str, str]]¶
Read a CSV file and return the contents as a list of dictionaries.
- Parameters:
file_path (Path) – Path to the CSV file to read.
- Returns:
A list of dictionaries containing the data from the CSV file.
- Return type:
list[dict[str, Any]]
- Raises:
ValueError – If the input file is not a CSV file.
- anormalratingsystem.utilities.file_handling.write_csv(file_path: Path, data: list[dict[str, str]]) None¶
Write a list of dictionaries to a CSV file.
- Parameters:
file_path (Path) – Path to the CSV file to write.
data (list[dict[str, str]]) – List of dictionaries to write to the CSV file.
- Raises:
ValueError – If the output file is not a CSV file.
Module contents¶
Utilities package for the project.