How roshanjpr80/snap-class works
Snap Class is a Streamlit attendance application for teachers and students. A teacher captures classroom photos or invokes voice attendance, reviews detected attendance, then confirms saving auditable records; students enroll through a code or link, sign in with face recognition or backup credentials, and view their attendance. The README documents the broader dashboard capabilities; several components are represented from its structure and the SOURCE INDEX rather than sampled implementation. Edges cite the README or indexed caller references where available.
Main entry points: teacher_screen.py Teacher dashboard · student_screen.py Student dashboard · db.py Attendance and enrollment data · home_screen.py Role selection
Components 22
App entry
- Routing and session
app.py
User screens
- Role selection
src/screens/home_screen.py - Teacher dashboard
src/screens/teacher_screen.py - Student dashboard
src/screens/student_screen.py - Create subject
src/components/dialog_create_subject.py - Share join code
src/components/dialog_share_subject.py - Join subject
src/components/dialog_enroll.py - Deep-link enrollment
src/components/dialog_auto_enroll.py - Subject cards
src/components/subject_card.py
Attendance capture
- Classroom photo capture
src/components/dialog_add_photo.py - Review and confirm
src/components/dialog_attendance_results.py - Voice attendance
src/components/dialog_voice_attendance.py
Identity pipelines
- Face matching
src/pipelines/face_pipeline.py - Speaker verification
src/pipelines/voice_pipeline.py
Data and UI
- Attendance and enrollment data
src/database/db.py - Supabase client
src/database/config.py - Supabase PostgreSQL
- Shared styling
src/ui/base_layout.py - Shared header
src/components/header.py - Shared footer
src/components/footer.py - Back-to-top control
src/components/dialog_to_top.py
Other components
- Teacher or student
Connections 41
- Teacher or student → Routing and session: opens
README.md - Routing and session → Role selection: routes to
app.py - Routing and session → Teacher dashboard: routes to
app.py - Routing and session → Student dashboard: routes to
app.py - Routing and session → Deep-link enrollment: dispatches link
app.py - Role selection → Teacher dashboard: selects role
src/screens/home_screen.py - Role selection → Student dashboard: selects role
src/screens/home_screen.py - Role selection → Shared header: renders
src/screens/home_screen.py - Role selection → Shared footer: renders
src/screens/home_screen.py - Role selection → Shared styling: applies styling
src/screens/home_screen.py - Teacher dashboard → Classroom photo capture: opens capture
src/screens/teacher_screen.py - Teacher dashboard → Review and confirm: shows results
src/screens/teacher_screen.py - Teacher dashboard → Voice attendance: opens voice flow
src/screens/teacher_screen.py - Teacher dashboard → Create subject: opens creation
src/screens/teacher_screen.py - Teacher dashboard → Share join code: opens sharing
src/screens/teacher_screen.py - Teacher dashboard → Face matching: matches faces
src/screens/teacher_screen.py - Teacher dashboard → Attendance and enrollment data: reads and writes
src/screens/teacher_screen.py - Teacher dashboard → Subject cards: renders
src/screens/teacher_screen.py - Teacher dashboard → Shared header: renders
src/screens/teacher_screen.py - Teacher dashboard → Shared footer: renders
src/screens/teacher_screen.py - Teacher dashboard → Shared styling: applies styling
src/screens/teacher_screen.py - Classroom photo capture → Face matching: analyzes images
- Review and confirm → Attendance and enrollment data: saves confirmed logs
src/components/dialog_attendance_results.py - Voice attendance → Speaker verification: verifies speaker
src/components/dialog_voice_attendance.py - Voice attendance → Review and confirm: shows results
src/components/dialog_voice_attendance.py - Voice attendance → Attendance and enrollment data: reads attendance data
src/components/dialog_voice_attendance.py - Student dashboard → Face matching: checks face login
src/screens/student_screen.py - Student dashboard → Speaker verification: checks voice backup
src/screens/student_screen.py - Student dashboard → Join subject: opens enrollment
src/screens/student_screen.py - Student dashboard → Attendance and enrollment data: reads and writes
src/screens/student_screen.py - Student dashboard → Subject cards: renders
src/screens/student_screen.py - Student dashboard → Shared header: renders
src/screens/student_screen.py - Student dashboard → Shared footer: renders
src/screens/student_screen.py - Student dashboard → Shared styling: applies styling
src/screens/student_screen.py - Create subject → Attendance and enrollment data: creates subject
src/components/dialog_create_subject.py - Join subject → Attendance and enrollment data: enrolls student
src/components/dialog_enroll.py - Deep-link enrollment → Attendance and enrollment data: enrolls student
src/components/dialog_auto_enroll.py - Face matching → Attendance and enrollment data: loads embeddings
src/pipelines/face_pipeline.py - Attendance and enrollment data → Supabase client: uses client
src/database/db.py - Supabase client → Supabase PostgreSQL: connects
src/database/config.py - Shared footer → Back-to-top control: renders
src/components/footer.py