A CLI tool for managing student records (add, view, update, delete).
Project description
Student Management System A simple command-line application for managing student records built with Python. This system allows you to add, view, search, update, and delete student information.
Features Add Student: Register new students with ID, name, course, and marks View Students: Display all student records in a formatted table Search Student: Find students by ID or name Update Student: Modify student course or marks Delete Student: Remove student records from the system Validation: Built-in validation for student data integrity Project Structure student_management/ │ ├── main.py # Entry point of the application ├── student_management/ │ ├── init.py # Package initializer │ ├── data.py # Data storage and constants │ ├── menu.py # Main menu interface │ ├── functions.py # Core CRUD operations │ └── display.py # Display and search functions Requirements Python 3.6 or higher No external dependencies required Installation Clone or download this repository Navigate to the project directory Ensure the project structure matches the layout above Usage Run the application using:
bash python main.py Menu Options Upon running the program, you'll see the following menu:
===== Student Management System =====
- Add Student
- View Students
- Search Student
- Update Student
- Delete Student
- Exit Adding a Student Select option 1 Enter student ID (integer) Enter student name Enter course (CSE, ECE, IT, MECH, or CIVIL) Enter marks (0-100)
Viewing Students Select option 2 to display all registered students in a tabular format.
Searching for a Student Select option 3 and enter either: Student ID (exact match) Student name (partial match, case-insensitive)
Updating a Student Select option 4 Enter the student ID Choose what to update: Course Marks
Deleting a Student Select option 5 Enter the student ID to delete Constraints Maximum Students: 8 students can be stored at a time Valid Courses: CSE, ECE, IT, MECH, CIVIL Marks Range: 0-100 Unique IDs: Each student must have a unique ID
Data Validation The system includes validation for: Duplicate student IDs Invalid course names Marks outside the 0-100 range Invalid input types (non-integer IDs or marks) Maximum student limit
Example Session ===== Student Management System =====
- Add Student Enter your choice: 1 Enter student ID: 101 Enter student name: John Doe Enter student course (CSE, ECE, IT, MECH, CIVIL): CSE Enter student marks: 85 Student added successfully.
Enter your choice: 2 ===== Student Records ===== ID Name Course Marks
101 John Doe CSE 85
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file student-management-cli-1.0.0.tar.gz.
File metadata
- Download URL: student-management-cli-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8f29096ea0b7b4c07aac835f80d3912fa81a7c7bc300e0dccaf3bb1be047d0
|
|
| MD5 |
3e08b14e76b72b887ea39c46b17c3851
|
|
| BLAKE2b-256 |
e08984314a1858e48659dd84fea7a2fc1b0e46526920fc7a796b396354f71b67
|
File details
Details for the file student_management_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: student_management_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70fb576974bbc2cb3643ed6ea1b56bb2ec5aed9eeb68d82026a7b8d15aefbf05
|
|
| MD5 |
2aee6ca1834c1b131697651fa0212291
|
|
| BLAKE2b-256 |
3d5061fdda676c8bae8e281a577f0d3ab995696452dbcafe1b1c4787e41d5a76
|