How pankajydv07/candidate_kit works
This repository is a FastAPI employee-attendance and analytics API backed by MongoDB. Its main workflow accepts employee punch events, derives attendance details, and stores attendance records; users can also regularize records and query employee or department analytics. The sampled source shows these endpoints and some database operations, but much of app/main.py and the OpenAPI contract were not provided, so the graph omits uncertain routes and relationships.
Main entry points: DATA_MODEL.md Employees collection · main.py Punch in
Components 12
API workflows
- Punch in
app/main.py - Punch out
app/main.py - Regularize record
app/main.py - List employees
app/main.py
Attendance logic
- Attendance calculations
app/main.py
Analytics
- Monthly employee stats
app/main.py - Department summary
app/main.py - Late leaderboard
app/main.py - Department trend
app/main.py
MongoDB data
- Employees collection
DATA_MODEL.md - Attendance logs
DATA_MODEL.md
Other components
- API client
Connections 18
- API client → Punch in: submits punch
README.md - API client → Punch out: submits punch
README.md - API client → Regularize record: requests correction
README.md - API client → List employees: requests list
README.md - API client → Monthly employee stats: requests report
README.md - API client → Department summary: requests summary
README.md - API client → Late leaderboard: requests ranking
README.md - API client → Department trend: requests trend
README.md - Punch in → Employees collection: looks up employee
app/main.py - Punch in → Attendance calculations: calculates attendance
app/main.py - Punch out → Employees collection: looks up employee
app/main.py - Punch out → Attendance logs: finds attendance
app/main.py - Regularize record → Employees collection: looks up employee
app/main.py - Regularize record → Attendance logs: loads record
app/main.py - List employees → Employees collection: queries employees
app/main.py - Monthly employee stats → Employees collection: looks up employee
app/main.py - Department summary → Employees collection: aggregates employees
app/main.py - Late leaderboard → Attendance logs: aggregates attendance
app/main.py