1pip install -r requirements.txt
2uvicorn app.main:app --reload
Open
http://localhost:8000/docs for interactive API documentation.
attendance_agent/
├── app/
│ ├── main.py # FastAPI entry point
│ ├── models.py # SQLAlchemy ORM models + SQLite
│ ├── attendance_calculator.py # Attendance % logic with R22 rules
│ ├── timetable.py # Slot & session management
│ ├── holidays.py # Holiday calendar integration
│ ├── od_workflow.py # Faculty→HOD OD approval chain
│ ├── condonation.py # Condonation rules (65%/55% thresholds)
│ ├── report.py # JSON, CSV, XLSX report exports
│ └── routers/
│ ├── students.py # Student CRUD
│ ├── subjects.py # Subject CRUD
│ ├── timetable_routes.py # Timetable & session endpoints
│ ├── attendance.py # Mark attendance & calculate %
│ ├── od_routes.py # OD request/approval APIs
│ ├── condonation_routes.py # Condonation APIs
│ ├── holidays_routes.py # Holiday APIs
│ └── reports_routes.py # Report generation APIs
├── tests/
│ ├── test_full.py # 27 comprehensive unit tests
│ └── integration_test.py # End-to-end integration test
└── requirements.txt
1# Unit tests (27 tests)
2pytest tests/test_full.py -v
3
4# Integration test (requires server running)
5python tests/integration_test.py
This model repository was generated by
ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "balaji958685/attendance-compliance-agent"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id)