This Python script is a simple web application created using Streamlit that allows you to maintain an attendance register for students. It provides a user-friendly interface for recording student attendance, viewing attendance records, and adding new student entries. The script uses Excel files for data storage and manipulation.
- Student Selection: You can select a student from the list of registered students.
- Date Entry: Enter the date for which you want to record attendance.
- Duration Slider: Slide to specify the duration of the class in minutes.
- Class Start Time: Choose the class start time using a dropdown menu with AM/PM options.
- Attendance Status: Mark students as "Present" or "Absent."
- Comments: Add optional comments for each attendance entry.
- View Records: You can select a student and view their attendance records in a tabular format. If no records exist for a student, it will display a message indicating no records found.
- Add New Student: You can add a new student's name to the list of registered students. The script will update the list of students and allow you to record attendance for the new student.
- Create a virtual environment, run the following command after cloning the repo
python -m venv venv
- Activate the virtual environment
- Windows:
venv\Scripts\activate
- MacOS:
source venv/bin/activate
- Windows:
- Install all required python packages [Make sure to have the virtual environment running]
pip install -r requirements.txt
- To run the application, run the following
streamlit run main.py
- To deactivate virtual environment, run
deactivate
- Select Student: Choose the student for whom you want to record attendance.
- Date Selection: Select the date for which you want to record attendance.
- Duration: Use the slider to set the duration of the class in minutes.
- Class Start Time: Choose the class start time from the dropdown menu.
- Attendance Status: Mark the student as "Present" or "Absent."
- Comments: Optionally, add comments for the attendance entry.
- Submit: Click the "Submit" button to record the attendance. The data will be saved in an Excel file named "AttendanceRecord.xlsx."
- View Records: You can view the attendance records for a specific student by selecting the student and clicking the "Show Records" button.
- Add New Student: If you have a new student, enter their name in the "New Student Entry" section and click the "Add" button to register them. The new student's name will be added to the list of registered students.
- Streamlit: Used to create the web application.
- Pandas: Used for data handling and manipulation.
- DateTime: Used for date and time operations.
- Calendar: Used to get day and month names.
The attendance data is stored in an Excel file named "AttendanceRecord.xlsx." Each student's attendance is recorded on a separate sheet within the Excel file, making it easy to manage and view attendance records.
Varun Kamath
This project is licensed under the MIT License - see the LICENSE file for details.