A simple Student Management System built with Python using Object-Oriented Programming (OOP). This project allows users to manage student records through a command-line interface and stores data permanently using JSON.
- Add a new student
- View all students
- Search a student by Roll Number
- Update student information
- Delete a student
- Automatically save data to a JSON file
- Load existing student data when the program starts
- Python 3
- Object-Oriented Programming (OOP)
- JSON
- File Handling
Student-Management-System/
│
├── student.py # Student class
├── manager.py # CRUD operations
├── storage.py # Save & Load JSON data
├── main.py # Main application
├── students.json # Database (created automatically)
└── README.md
git clone https://github.com/your-username/Student-Management-System.gitcd Student-Management-Systempython main.py===== Student Management System =====
1. Add Student
2. View Students
3. Search Student
4. Update Student
5. Delete Student
6. Exit
- Classes & Objects
- Encapsulation
- Constructors (
__init__) - CRUD Operations
- Lists of Objects
- Methods
- JSON Serialization
- JSON Deserialization
- File Handling
- Exception Handling
- Dynamic Attribute Updates (
setattr) - Keyword Arguments (
**kwargs) - Modules & Imports
- Menu-Driven Programs
Student records are stored in a local students.json file. All changes are automatically saved, and existing records are loaded whenever the application starts.
Through this project, I learned how to:
- Design applications using Object-Oriented Programming.
- Build reusable classes and methods.
- Perform CRUD operations.
- Work with JSON files for persistent storage.
- Handle exceptions gracefully.
- Organize a Python project into multiple modules.
- Build a complete command-line application.
This project is created for learning and educational purposes.