Skip to main content

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 =====

  1. Add Student
  2. View Students
  3. Search Student
  4. Update Student
  5. Delete Student
  6. 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 =====

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

student-management-cli-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

student_management_cli-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for student-management-cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cc8f29096ea0b7b4c07aac835f80d3912fa81a7c7bc300e0dccaf3bb1be047d0
MD5 3e08b14e76b72b887ea39c46b17c3851
BLAKE2b-256 e08984314a1858e48659dd84fea7a2fc1b0e46526920fc7a796b396354f71b67

See more details on using hashes here.

File details

Details for the file student_management_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for student_management_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70fb576974bbc2cb3643ed6ea1b56bb2ec5aed9eeb68d82026a7b8d15aefbf05
MD5 2aee6ca1834c1b131697651fa0212291
BLAKE2b-256 3d5061fdda676c8bae8e281a577f0d3ab995696452dbcafe1b1c4787e41d5a76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page