# sarveshparthiban18-del/attendancepro architecture

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

- Interactive diagram: https://gitdiagram.com/sarveshparthiban18-del/attendancepro
- Repository: https://github.com/sarveshparthiban18-del/attendancepro

## Overview

AttendancePro is a Flask college attendance system. Students register or log in, then view overall and subject attendance statistics; administrators log in to manage students and subjects and create, edit, delete, and filter attendance records. The sampled app.py shows the route handlers, database access, and template rendering; database.py defines the persisted entities. Templates are represented as a view subsystem based on the tree and README, but their individual behavior was not sampled.

Main entry points: [`database.py`](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/database.py) (Attendance models), [`app.py`](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py) (Student access), [`templates`](https://github.com/sarveshparthiban18-del/attendancepro/tree/main/templates) (HTML views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student["Student experience"]
  node_student_access["Student access<br/>[app.py]"]
  node_student_dashboard["Attendance dashboard<br/>[app.py]"]
end

subgraph group_admin["Administration"]
  node_admin_access["Admin access<br/>[app.py]"]
  node_admin_overview["Admin overview<br/>[app.py]"]
  node_student_management["Student management<br/>[app.py]"]
  node_subject_management["Subject management<br/>[app.py]"]
  node_attendance_management["Attendance management<br/>[app.py]"]
end

subgraph group_persistence["Persistence"]
  node_data_models["Attendance models<br/>[database.py]"]
  node_database[("SQL database")]
end

subgraph group_views["Rendered views"]
  node_templates["HTML views"]
end

node_student_actor(("Student"))
node_admin_actor(("Administrator"))

node_student_actor -->|"registers or logs in"| node_student_access
node_student_access -->|"opens dashboard"| node_student_dashboard
node_student_dashboard -->|"queries attendance"| node_data_models
node_student_access -->|"queries and saves"| node_data_models
node_admin_actor -->|"logs in"| node_admin_access
node_admin_access -->|"opens admin"| node_admin_overview
node_admin_overview -->|"queries statistics"| node_data_models
node_student_management -->|"adds or deletes"| node_data_models
node_subject_management -->|"adds or deletes"| node_data_models
node_attendance_management -->|"marks and edits"| node_data_models
node_data_models -->|"persists records"| node_database
node_student_access -->|"renders forms"| node_templates
node_student_dashboard -->|"renders dashboard"| node_templates
node_admin_access -->|"renders login"| node_templates
node_admin_overview -->|"renders admin"| node_templates

click node_student_access "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_student_dashboard "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_admin_access "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_admin_overview "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_student_management "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_subject_management "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_attendance_management "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py"
click node_data_models "https://github.com/sarveshparthiban18-del/attendancepro/blob/main/database.py"
click node_templates "https://github.com/sarveshparthiban18-del/attendancepro/tree/main/templates"

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_student_access,node_student_dashboard toneBlue
class node_admin_access,node_admin_overview,node_student_management,node_subject_management,node_attendance_management toneAmber
class node_data_models,node_database toneMint
class node_templates toneRose
class node_student_actor,node_admin_actor toneIndigo
```

## Components

### Student experience

- [Student access](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`
- [Attendance dashboard](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`

### Administration

- [Admin access](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`
- [Admin overview](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`
- [Student management](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`
- [Subject management](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`
- [Attendance management](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/app.py): `app.py`

### Persistence

- [Attendance models](https://github.com/sarveshparthiban18-del/attendancepro/blob/main/database.py): `database.py`
- **SQL database**

### Rendered views

- [HTML views](https://github.com/sarveshparthiban18-del/attendancepro/tree/main/templates): `templates`

### Other components

- **Student**
- **Administrator**

## Connections

- Student → Student access: registers or logs in (evidence: `README.md`)
- Student access → Attendance dashboard: opens dashboard (evidence: `app.py`)
- Attendance dashboard → Attendance models: queries attendance (evidence: `app.py`)
- Student access → Attendance models: queries and saves (evidence: `app.py`)
- Administrator → Admin access: logs in (evidence: `README.md`)
- Admin access → Admin overview: opens admin (evidence: `app.py`)
- Admin overview → Attendance models: queries statistics (evidence: `app.py`)
- Student management → Attendance models: adds or deletes (evidence: `app.py`)
- Subject management → Attendance models: adds or deletes (evidence: `app.py`)
- Attendance management → Attendance models: marks and edits (evidence: `app.py`)
- Attendance models → SQL database: persists records (evidence: `database.py`)
- Student access → HTML views: renders forms (evidence: `app.py`)
- Attendance dashboard → HTML views: renders dashboard (evidence: `app.py`)
- Admin access → HTML views: renders login (evidence: `app.py`)
- Admin overview → HTML views: renders admin (evidence: `app.py`)
