- Implemented `stage_parse_schedule.py` to normalize and prepare university schedule data. - Created `stage_process_logs.py` for processing authentication logs and generating session records. - Added necessary classes and methods for log entry parsing, session extraction, and CSV output. - Updated `settings.yaml` with new schedule and processing configurations. - Introduced new templates and styles for report generation, including HTML and CSS files. - Added main entry point `run.py` to execute the attendance processing pipeline. - Included `.gitkeep` files in `output` and `result` directories to maintain structure.
27 lines
609 B
Python
Executable File
27 lines
609 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Main entry point for attendance processing pipeline."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add workspace root to path
|
|
workspace_root = Path(__file__).parent
|
|
sys.path.insert(0, str(workspace_root))
|
|
|
|
from lib.pipeline import create_default_pipeline
|
|
|
|
|
|
def main():
|
|
"""Execute the attendance processing pipeline."""
|
|
try:
|
|
pipeline = create_default_pipeline(workspace_root)
|
|
context = pipeline.run()
|
|
return 0
|
|
except Exception as e:
|
|
print(f"Error: {str(e)}", file=sys.stderr)
|
|
return 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|