pykubegrader.log_parser package#
Submodules#
pykubegrader.log_parser.parse module#
- class pykubegrader.log_parser.parse.LogParser(log_lines: list[str], week_tag: str | None = None, student_info: dict[str, str] = <factory>, assignments: dict[str, dict] = <factory>)[source]#
Bases:
object
A class for parsing chronological logs and extracting information. Handles both assignment info and question-level details.
- calculate_total_scores() None [source]#
Calculates total scores for each assignment by summing the ‘score_earned’ of its questions, and sets ‘total_points’ if it was not specified.
- get_results() LogParserResults [source]#
Returns the parsed results as a hierarchical dictionary with three sections: