# miclearnstocode/thesis_estorque architecture

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

- Interactive diagram: https://gitdiagram.com/miclearnstocode/thesis_estorque
- Repository: https://github.com/miclearnstocode/thesis_estorque

## Overview

This is a desktop student and curriculum management application, with PostgreSQL-backed records and separate screens for student records, grades, curriculum appraisal, archives, and administration. The principal workflow is user login, navigation through the application, and screen operations against shared database services; the repository also includes a separate course-data processing utility. The README is empty, so capabilities and connections are based on the source index and excerpts; several screen internals were not sampled.

Main entry points: [`thesis_copy/database.py`](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/database.py) (Database access), [`thesis_copy/Main.py`](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/Main.py) (App shell), [`thesis_copy/student_screen.py`](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/student_screen.py) (Student records), [`thesis_copy/postgres_manager.py`](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/postgres_manager.py) (PostgreSQL manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_main["App shell<br/>[Main.py]"]
end

subgraph group_records["Academic records"]
  node_students["Student records<br/>[student_screen.py]"]
  node_grades["Grade management<br/>[grade_screen.py]"]
  node_student_grades["Student grades<br/>[student_grades.py]"]
  node_archive["Student archive<br/>[archive_screen.py]"]
  node_printing["Print reports<br/>[print_all.py]"]
end

subgraph group_curriculum["Curriculum tools"]
  node_curriculum_screen["Curriculum screen"]
  node_appraisal["Curriculum appraisal"]
  node_processor_entry["Course analysis entry<br/>[MainSample1.py]"]
  node_processor["Course data processing<br/>[data_processor3.py]"]
end

subgraph group_services["Access and services"]
  node_login["Login and registration<br/>[loginform.py]"]
  node_admin["Administration<br/>[admin_screen.py]"]
  node_database["Database access<br/>[database.py]"]
  node_config["Configuration<br/>[config_manager.py]"]
  node_postgres_manager["PostgreSQL manager"]
  node_peer_server["Peer server<br/>[server.py]"]
end

node_user(("User"))
node_postgres[("PostgreSQL")]

node_user -->|"uses"| node_main
node_main -->|"opens"| node_login
node_main -->|"routes to"| node_students
node_main -->|"routes to"| node_grades
node_main -.->|"loads"| node_student_grades
node_main -->|"routes to"| node_archive
node_main -->|"routes to"| node_curriculum_screen
node_main -->|"routes to"| node_appraisal
node_main -->|"routes to"| node_admin
node_main -->|"starts"| node_postgres_manager
node_main -.->|"imports"| node_peer_server
node_login -->|"queries"| node_database
node_students -->|"queries"| node_database
node_students -->|"uses"| node_printing
node_grades -->|"queries"| node_database
node_student_grades -->|"queries"| node_database
node_archive -->|"queries"| node_database
node_curriculum_screen -->|"queries"| node_database
node_appraisal -->|"queries"| node_database
node_admin -->|"queries"| node_database
node_printing -->|"queries"| node_database
node_processor_entry -->|"calls"| node_processor
node_database -->|"loads settings"| node_config
node_database -.->|"uses"| node_postgres_manager
node_database -.->|"reads and writes"| node_postgres
node_peer_server -->|"dispatches actions"| node_database
node_postgres_manager -->|"starts service"| node_postgres

click node_main "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/Main.py"
click node_login "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/loginform.py"
click node_students "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/student_screen.py"
click node_grades "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/grade_screen.py"
click node_student_grades "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/student_grades.py"
click node_archive "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/archive_screen.py"
click node_printing "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/print_all.py"
click node_curriculum_screen "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/curriculum_screen.py"
click node_appraisal "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/appraisal_screen.py"
click node_processor_entry "https://github.com/miclearnstocode/thesis_estorque/blob/main/Image/MainSample1.py"
click node_processor "https://github.com/miclearnstocode/thesis_estorque/blob/main/Image/data_processor3.py"
click node_admin "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/admin_screen.py"
click node_database "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/database.py"
click node_config "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/config_manager.py"
click node_postgres_manager "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/postgres_manager.py"
click node_peer_server "https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/server.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_main,node_user toneBlue
class node_students,node_grades,node_student_grades,node_archive,node_printing,node_postgres toneAmber
class node_curriculum_screen,node_appraisal,node_processor_entry,node_processor toneMint
class node_login,node_admin,node_database,node_config,node_postgres_manager,node_peer_server toneRose
```

## Components

### Desktop application

- [App shell](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/Main.py): `thesis_copy/Main.py`

### Academic records

- [Student records](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/student_screen.py): `thesis_copy/student_screen.py`
- [Grade management](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/grade_screen.py): `thesis_copy/grade_screen.py`
- [Student grades](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/student_grades.py): `thesis_copy/student_grades.py`
- [Student archive](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/archive_screen.py): `thesis_copy/archive_screen.py`
- [Print reports](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/print_all.py): `thesis_copy/print_all.py`

### Curriculum tools

- [Curriculum screen](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/curriculum_screen.py): `thesis_copy/curriculum_screen.py`
- [Curriculum appraisal](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/appraisal_screen.py): `thesis_copy/appraisal_screen.py`
- [Course analysis entry](https://github.com/miclearnstocode/thesis_estorque/blob/main/Image/MainSample1.py): `Image/MainSample1.py`
- [Course data processing](https://github.com/miclearnstocode/thesis_estorque/blob/main/Image/data_processor3.py): `Image/data_processor3.py`

### Access and services

- [Login and registration](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/loginform.py): `thesis_copy/loginform.py`
- [Administration](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/admin_screen.py): `thesis_copy/admin_screen.py`
- [Database access](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/database.py): `thesis_copy/database.py`
- [Configuration](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/config_manager.py): `thesis_copy/config_manager.py`
- [PostgreSQL manager](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/postgres_manager.py): `thesis_copy/postgres_manager.py`
- [Peer server](https://github.com/miclearnstocode/thesis_estorque/blob/main/thesis_copy/server.py): `thesis_copy/server.py`

### Other components

- **User**
- **PostgreSQL**

## Connections

- User → App shell: uses
- App shell → Login and registration: opens (evidence: `thesis_copy/Main.py`)
- App shell → Student records: routes to (evidence: `thesis_copy/Main.py`)
- App shell → Grade management: routes to (evidence: `thesis_copy/Main.py`)
- App shell → Student grades: loads
- App shell → Student archive: routes to (evidence: `thesis_copy/Main.py`)
- App shell → Curriculum screen: routes to (evidence: `thesis_copy/Main.py`)
- App shell → Curriculum appraisal: routes to (evidence: `thesis_copy/Main.py`)
- App shell → Administration: routes to (evidence: `thesis_copy/Main.py`)
- App shell → PostgreSQL manager: starts (evidence: `thesis_copy/Main.py`)
- App shell → Peer server: imports (evidence: `thesis_copy/Main.py`)
- Login and registration → Database access: queries (evidence: `thesis_copy/loginform.py`)
- Student records → Database access: queries (evidence: `thesis_copy/student_screen.py`)
- Student records → Print reports: uses (evidence: `thesis_copy/student_screen.py`)
- Grade management → Database access: queries (evidence: `thesis_copy/grade_screen.py`)
- Student grades → Database access: queries (evidence: `thesis_copy/student_grades.py`)
- Student archive → Database access: queries (evidence: `thesis_copy/archive_screen.py`)
- Curriculum screen → Database access: queries (evidence: `thesis_copy/curriculum_screen.py`)
- Curriculum appraisal → Database access: queries (evidence: `thesis_copy/appraisal_screen.py`)
- Administration → Database access: queries (evidence: `thesis_copy/admin_screen.py`)
- Print reports → Database access: queries (evidence: `thesis_copy/print_all.py`)
- Course analysis entry → Course data processing: calls (evidence: `Image/MainSample1.py`)
- Database access → Configuration: loads settings (evidence: `thesis_copy/database.py`)
- Database access → PostgreSQL manager: uses (evidence: `thesis_copy/database.py`)
- Database access → PostgreSQL: reads and writes
- Peer server → Database access: dispatches actions (evidence: `thesis_copy/server.py`)
- PostgreSQL manager → PostgreSQL: starts service (evidence: `thesis_copy/postgres_manager.py`)
