How shravan12092005/snapclass works
SnapClass is a Streamlit attendance system: teachers manage courses and review face- or voice-detected attendance, while students register or authenticate by face and view course attendance. The app routes into role-specific screens; those screens coordinate biometric pipelines, dialogs, and database operations. The README documents additional course-sharing, enrollment, roster, and reporting capabilities whose implementation details were not sampled. Edges for those features are documented rather than inferred from unsampled source.
Main entry points: teacher_screen.py Teacher portal · student_screen.py Student portal · db.py Attendance data operations · app.py App routing
Components 19
App and portals
- App routing
app.py - Home portal
src/screens/home_screen.py - Student portal
src/screens/student_screen.py - Teacher portal
src/screens/teacher_screen.py - Shared layout
src/ui/base_layout.py
Courses and attendance
- Course dialogs
src/components - Enrollment dialogs
src/components/dialog_enroll.py - Course sharing
src/components/dialog_share_subject.py - Photo attendance input
src/components/dialog_add_photo.py - Voice attendance input
src/components/dialog_voice_attendance.py - Attendance review
src/components/dialog_attendance_results.py - Course summaries
src/components/subject_card.py
Biometric processing
- Face recognition
src/pipelines/face_pipeline.py - Voice recognition
src/pipelines/voice_pipeline.py
Data access
- Attendance data operations
src/database/db.py - Supabase client
src/database/config.py - Supabase database
- Application logging
src/utils/logger.py
Other components
- Teacher or student
Connections 31
- Teacher or student → App routing: opens
README.md - App routing → Home portal: routes to
app.py - App routing → Student portal: routes to
app.py - App routing → Teacher portal: routes to
app.py - Home portal → Shared layout: styles with
src/screens/home_screen.py - Student portal → Shared layout: styles with
src/screens/student_screen.py - Teacher portal → Shared layout: styles with
src/screens/teacher_screen.py - Student portal → Face recognition: authenticates with
src/screens/student_screen.py - Student portal → Voice recognition: registers voice with
src/screens/student_screen.py - Teacher portal → Face recognition: scans with
src/screens/teacher_screen.py - Teacher portal → Photo attendance input: opens
src/screens/teacher_screen.py - Teacher portal → Voice attendance input: opens
src/screens/teacher_screen.py - Teacher portal → Course dialogs: manages courses with
src/screens/teacher_screen.py - Teacher portal → Course sharing: shares courses with
src/screens/teacher_screen.py - Teacher portal → Course summaries: renders
src/screens/teacher_screen.py - Student portal → Enrollment dialogs: opens
src/screens/student_screen.py - Student portal → Course summaries: renders
src/screens/student_screen.py - Student portal → Attendance data operations: reads and updates
src/screens/student_screen.py - Teacher portal → Attendance data operations: reads and updates
src/screens/teacher_screen.py - Face recognition → Attendance data operations: loads student profiles
src/pipelines/face_pipeline.py - Voice attendance input → Voice recognition: analyzes audio with
src/components/dialog_voice_attendance.py - Voice attendance input → Attendance review: passes results to
src/components/dialog_voice_attendance.py - Photo attendance input → Attendance review: reviews detection
- Attendance review → Attendance data operations: saves attendance
src/components/dialog_attendance_results.py - Attendance data operations → Supabase client: uses client
src/database/db.py - Voice attendance input → Supabase client: queries enrollment
src/components/dialog_voice_attendance.py - Supabase client → Supabase database: connects to
src/database/config.py - Attendance data operations → Application logging: logs errors
src/database/db.py - Teacher portal → Enrollment dialogs: inspects roster
README.md - Teacher portal → Attendance data operations: views records and statistics
README.md - Student portal → Attendance data operations: views attendance history
README.md