# prathameshdhande22/student-management-system-in-python architecture

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

- Interactive diagram: https://gitdiagram.com/prathameshdhande22/student-management-system-in-python
- Repository: https://github.com/prathameshdhande22/student-management-system-in-python

## Overview

This is a Tkinter desktop student-management system backed by MySQL. A user enters through the login screen, which authenticates credentials and opens a role-specific workspace; administrators manage people and fee records, faculty manage attendance and student lookups, and students view their own profile, attendance, and fee history. The backend centralizes database access. The README and sampled files establish these main capabilities; unsampled role-screen behavior is represented at subsystem level rather than inferred in detail.

Main entry points: [`windows/backend.py`](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/backend.py) (MySQL access), [`windows/login_win.py`](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/login_win.py) (Login and recovery), [`windows/student.py`](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py) (Student workspace), [`windows/admin.py`](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/admin.py) (Admin workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_startup["Desktop startup<br/>[app.py]"]
  node_loading["Loading screen<br/>[loading.py]"]
end

subgraph group_access["Access and administration"]
  node_login["Login and recovery<br/>[login_win.py]"]
  node_superadmin["Superadmin workspace<br/>[superadmin.py]"]
  node_admin["Admin workspace<br/>[admin.py]"]
  node_fees["Fee-year editor<br/>[fees.py]"]
end

subgraph group_academic["Academic records"]
  node_faculty["Faculty workspace<br/>[faculty.py]"]
  node_attendance["Attendance records<br/>[faculty.py]"]
  node_student["Student workspace<br/>[student.py]"]
  node_profile["Student profile<br/>[student.py]"]
  node_attendance_history["Attendance history<br/>[student.py]"]
  node_fee_history["Fee history<br/>[student.py]"]
end

subgraph group_data["Data access"]
  node_backend["MySQL access<br/>[backend.py]"]
  node_mysql[("MySQL database<br/>[Script.sql]")]
end

node_user(("College user"))

node_user -->|"enters credentials"| node_login
node_startup -->|"opens"| node_loading
node_startup -->|"starts login"| node_login
node_login -->|"checks credentials"| node_backend
node_login -->|"dispatches role"| node_superadmin
node_login -->|"dispatches role"| node_admin
node_login -->|"dispatches role"| node_faculty
node_login -->|"dispatches role"| node_student
node_superadmin -->|"manages accounts"| node_backend
node_admin -->|"manages records"| node_backend
node_admin -->|"opens editor"| node_fees
node_fees -->|"updates fee years"| node_backend
node_faculty -->|"reads class data"| node_backend
node_faculty -->|"records attendance"| node_attendance
node_attendance -->|"writes attendance"| node_backend
node_student -->|"shows profile"| node_profile
node_student -->|"shows history"| node_attendance_history
node_student -->|"shows history"| node_fee_history
node_profile -->|"loads details"| node_backend
node_attendance_history -->|"loads attendance"| node_backend
node_fee_history -->|"loads fee records"| node_backend
node_backend -->|"queries and updates"| node_mysql

click node_startup "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/app.py"
click node_loading "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/loading.py"
click node_login "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/login_win.py"
click node_superadmin "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/superadmin.py"
click node_admin "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/admin.py"
click node_faculty "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/faculty.py"
click node_attendance "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/faculty.py"
click node_student "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py"
click node_profile "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py"
click node_attendance_history "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py"
click node_fee_history "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py"
click node_fees "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/fees.py"
click node_backend "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/backend.py"
click node_mysql "https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/Resources/Script.sql"

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_startup,node_loading,node_user toneBlue
class node_login,node_superadmin,node_admin,node_fees toneAmber
class node_faculty,node_attendance,node_student,node_profile,node_attendance_history,node_fee_history toneMint
class node_backend,node_mysql toneRose
```

## Components

### Application entry

- [Desktop startup](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/app.py): `app.py`
- [Loading screen](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/loading.py): `windows/loading.py`

### Access and administration

- [Login and recovery](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/login_win.py): `windows/login_win.py`
- [Superadmin workspace](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/superadmin.py): `windows/superadmin.py`
- [Admin workspace](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/admin.py): `windows/admin.py`
- [Fee-year editor](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/fees.py): `windows/fees.py`

### Academic records

- [Faculty workspace](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/faculty.py): `windows/faculty.py`
- [Attendance records](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/faculty.py): `windows/faculty.py`
- [Student workspace](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py): `windows/student.py`
- [Student profile](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py): `windows/student.py`
- [Attendance history](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py): `windows/student.py`
- [Fee history](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/student.py): `windows/student.py`

### Data access

- [MySQL access](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/windows/backend.py): `windows/backend.py`
- [MySQL database](https://github.com/prathameshdhande22/student-management-system-in-python/blob/main/Resources/Script.sql): `Resources/Script.sql`

### Other components

- **College user**

## Connections

- College user → Login and recovery: enters credentials (evidence: `README.md`)
- Desktop startup → Loading screen: opens (evidence: `app.py`)
- Desktop startup → Login and recovery: starts login (evidence: `app.py`)
- Login and recovery → MySQL access: checks credentials (evidence: `windows/login_win.py`)
- Login and recovery → Superadmin workspace: dispatches role (evidence: `windows/login_win.py`)
- Login and recovery → Admin workspace: dispatches role (evidence: `windows/login_win.py`)
- Login and recovery → Faculty workspace: dispatches role (evidence: `windows/login_win.py`)
- Login and recovery → Student workspace: dispatches role (evidence: `windows/login_win.py`)
- Superadmin workspace → MySQL access: manages accounts (evidence: `windows/superadmin.py`)
- Admin workspace → MySQL access: manages records (evidence: `windows/admin.py`)
- Admin workspace → Fee-year editor: opens editor (evidence: `windows/admin.py`)
- Fee-year editor → MySQL access: updates fee years (evidence: `windows/fees.py`)
- Faculty workspace → MySQL access: reads class data (evidence: `windows/faculty.py`)
- Faculty workspace → Attendance records: records attendance (evidence: `windows/faculty.py`)
- Attendance records → MySQL access: writes attendance (evidence: `windows/faculty.py`)
- Student workspace → Student profile: shows profile (evidence: `windows/student.py`)
- Student workspace → Attendance history: shows history (evidence: `windows/student.py`)
- Student workspace → Fee history: shows history (evidence: `windows/student.py`)
- Student profile → MySQL access: loads details (evidence: `windows/student.py`)
- Attendance history → MySQL access: loads attendance (evidence: `windows/student.py`)
- Fee history → MySQL access: loads fee records (evidence: `windows/student.py`)
- MySQL access → MySQL database: queries and updates (evidence: `windows/backend.py`)
