# harshverma21348-dot/student-management-system-v2 architecture

> Architecture diagram of the GitHub repository harshverma21348-dot/student-management-system-v2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harshverma21348-dot/student-management-system-v2
- Repository: https://github.com/harshverma21348-dot/student-management-system-v2

## Overview

This is a console-based student record manager. A terminal user selects operations from the menu; the selected handler loads records, performs the requested CRUD, search, or statistics work, and prints results. Add/update/delete persist changes in a JSON file, created at startup. Validation and duplicate-roll checks support record entry. The single Python file contains all runtime layers; edges cite its excerpt, which also limits evidence to relationships visible there.

Main entry points: [`Student Management System v2.py`](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py) (Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Terminal interface"]
  node_menu["Menu"]
end

subgraph group_records["Student operations"]
  node_add["Add student"]
  node_view["View students"]
  node_search["Search students"]
  node_update["Update student"]
  node_delete["Delete student"]
  node_stats["Student statistics"]
end

subgraph group_support["Validation and storage"]
  node_validation["Input validation"]
  node_duplicate["Duplicate check"]
  node_storage[("JSON file storage")]
  node_display["Record display"]
end

node_user(("Terminal user"))

node_user -->|"chooses operation"| node_menu
node_menu -->|"dispatches"| node_add
node_menu -->|"dispatches"| node_view
node_menu -->|"dispatches"| node_search
node_menu -->|"dispatches"| node_update
node_menu -->|"dispatches"| node_delete
node_menu -->|"dispatches"| node_stats
node_add -->|"loads and saves"| node_storage
node_view -->|"loads"| node_storage
node_search -->|"loads"| node_storage
node_update -->|"loads and saves"| node_storage
node_delete -->|"loads and saves"| node_storage
node_stats -->|"loads"| node_storage
node_add -->|"validates fields"| node_validation
node_add -->|"checks roll"| node_duplicate
node_update -->|"validates fields"| node_validation
node_search -->|"validates roll"| node_validation
node_delete -->|"validates roll"| node_validation
node_view -->|"renders records"| node_display
node_search -->|"renders matches"| node_display
node_update -->|"renders record"| node_display
node_delete -->|"renders record"| node_display

click node_menu "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_add "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_view "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_search "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_update "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_delete "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_stats "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_validation "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_duplicate "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_storage "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"
click node_display "https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_menu,node_user toneBlue
class node_add,node_view,node_search,node_update,node_delete,node_stats toneAmber
class node_validation,node_duplicate,node_storage,node_display toneMint
```

## Components

### Terminal interface

- [Menu](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`

### Student operations

- [Add student](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [View students](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Search students](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Update student](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Delete student](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Student statistics](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`

### Validation and storage

- [Input validation](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Duplicate check](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [JSON file storage](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`
- [Record display](https://github.com/harshverma21348-dot/student-management-system-v2/blob/main/Student%20Management%20System%20v2.py): `Student Management System v2.py`

### Other components

- **Terminal user**

## Connections

- Terminal user → Menu: chooses operation (evidence: `Student Management System v2.py`)
- Menu → Add student: dispatches (evidence: `Student Management System v2.py`)
- Menu → View students: dispatches (evidence: `Student Management System v2.py`)
- Menu → Search students: dispatches (evidence: `Student Management System v2.py`)
- Menu → Update student: dispatches (evidence: `Student Management System v2.py`)
- Menu → Delete student: dispatches (evidence: `Student Management System v2.py`)
- Menu → Student statistics: dispatches (evidence: `Student Management System v2.py`)
- Add student → JSON file storage: loads and saves (evidence: `Student Management System v2.py`)
- View students → JSON file storage: loads (evidence: `Student Management System v2.py`)
- Search students → JSON file storage: loads (evidence: `Student Management System v2.py`)
- Update student → JSON file storage: loads and saves (evidence: `Student Management System v2.py`)
- Delete student → JSON file storage: loads and saves (evidence: `Student Management System v2.py`)
- Student statistics → JSON file storage: loads (evidence: `Student Management System v2.py`)
- Add student → Input validation: validates fields (evidence: `Student Management System v2.py`)
- Add student → Duplicate check: checks roll (evidence: `Student Management System v2.py`)
- Update student → Input validation: validates fields (evidence: `Student Management System v2.py`)
- Search students → Input validation: validates roll (evidence: `Student Management System v2.py`)
- Delete student → Input validation: validates roll (evidence: `Student Management System v2.py`)
- View students → Record display: renders records (evidence: `Student Management System v2.py`)
- Search students → Record display: renders matches (evidence: `Student Management System v2.py`)
- Update student → Record display: renders record (evidence: `Student Management System v2.py`)
- Delete student → Record display: renders record (evidence: `Student Management System v2.py`)
