# yasirpy/students-data-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/yasirpy/students-data-management-system
- Repository: https://github.com/yasirpy/students-data-management-system

## Overview

This is a small command-line student-record manager. Users choose add, view, or delete; the menu dispatches to workflows that collect or validate roll numbers, operate on student records, and persist them in CSV. CSV setup and record operations also log activity. The graph follows the shown calls; the README documents logging and error handling, though the configured log filename differs in capitalization from the README’s name.

Main entry points: [`data_manager.py`](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py) (Student records), [`entry_funcs.py`](https://github.com/yasirpy/students-data-management-system/blob/main/entry_funcs.py) (Input validation), [`Students_Data.csv`](https://github.com/yasirpy/students-data-management-system/blob/main/Students_Data.csv) (Student CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["User workflow"]
  node_menu["Command menu<br/>[data_manager.py]"]
  node_input["Input validation<br/>[entry_funcs.py]"]
end

subgraph group_records["Student records"]
  node_add["Add workflow<br/>[data_manager.py]"]
  node_view["View workflow<br/>[data_manager.py]"]
  node_delete["Delete workflow<br/>[data_manager.py]"]
  node_student["Student records<br/>[data_manager.py]"]
end

subgraph group_persistence["Persistence"]
  node_csv[("Student CSV<br/>[Students_Data.csv]")]
  node_logging["Activity log"]
end

node_user(("User"))

node_user -->|"chooses action"| node_menu
node_menu -->|"dispatches to"| node_add
node_menu -->|"dispatches to"| node_view
node_menu -->|"dispatches to"| node_delete
node_add -->|"collects fields"| node_input
node_view -->|"checks roll"| node_input
node_delete -->|"checks roll"| node_input
node_add -->|"adds record"| node_student
node_view -->|"views record"| node_student
node_delete -->|"deletes record"| node_student
node_input -->|"checks roll numbers"| node_csv
node_student -->|"reads and writes"| node_csv
node_add -->|"records addition"| node_logging
node_delete -->|"records deletion"| node_logging
node_student -->|"logs CSV creation"| node_logging

click node_menu "https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py"
click node_input "https://github.com/yasirpy/students-data-management-system/blob/main/entry_funcs.py"
click node_add "https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py"
click node_view "https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py"
click node_delete "https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py"
click node_student "https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py"
click node_csv "https://github.com/yasirpy/students-data-management-system/blob/main/Students_Data.csv"

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_input,node_user toneBlue
class node_add,node_view,node_delete,node_student toneAmber
class node_csv,node_logging toneMint
```

## Components

### User workflow

- [Command menu](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py): `data_manager.py`
- [Input validation](https://github.com/yasirpy/students-data-management-system/blob/main/entry_funcs.py): `entry_funcs.py`

### Student records

- [Add workflow](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py): `data_manager.py`
- [View workflow](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py): `data_manager.py`
- [Delete workflow](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py): `data_manager.py`
- [Student records](https://github.com/yasirpy/students-data-management-system/blob/main/data_manager.py): `data_manager.py`

### Persistence

- [Student CSV](https://github.com/yasirpy/students-data-management-system/blob/main/Students_Data.csv): `Students_Data.csv`
- **Activity log**

### Other components

- **User**

## Connections

- User → Command menu: chooses action (evidence: `data_manager.py`)
- Command menu → Add workflow: dispatches to (evidence: `data_manager.py`)
- Command menu → View workflow: dispatches to (evidence: `data_manager.py`)
- Command menu → Delete workflow: dispatches to (evidence: `data_manager.py`)
- Add workflow → Input validation: collects fields (evidence: `data_manager.py`)
- View workflow → Input validation: checks roll (evidence: `data_manager.py`)
- Delete workflow → Input validation: checks roll (evidence: `data_manager.py`)
- Add workflow → Student records: adds record (evidence: `data_manager.py`)
- View workflow → Student records: views record (evidence: `data_manager.py`)
- Delete workflow → Student records: deletes record (evidence: `data_manager.py`)
- Input validation → Student CSV: checks roll numbers (evidence: `entry_funcs.py`)
- Student records → Student CSV: reads and writes (evidence: `data_manager.py`)
- Add workflow → Activity log: records addition (evidence: `data_manager.py`)
- Delete workflow → Activity log: records deletion (evidence: `data_manager.py`)
- Student records → Activity log: logs CSV creation (evidence: `data_manager.py`)
