# stanislavkutskb2025-max/cybersecurity-python-labs architecture

> Architecture diagram of the GitHub repository stanislavkutskb2025-max/cybersecurity-python-labs, 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/stanislavkutskb2025-max/cybersecurity-python-labs
- Repository: https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs

## Overview

This repository is a set of Python security-programming lab exercises, not a single deployed application. Lab 1’s runner presents password-strength classification, access-control checks, and CSV-backed registration/login with JSON event logging. Lab 2 contains standalone user, administrator, and session models. The shared module supplies student metadata. The Lab 2 runner and Task 2 are empty in the supplied excerpts; no workflow is inferred for them.

Main entry points: [`labs/lab01/main.py`](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/main.py) (Lab 1 runner), [`labs/lab01/Task3.py`](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/Task3.py) (Registration and login), [`shared/student.py`](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/shared/student.py) (Student metadata), [`labs/lab01/task1.py`](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/task1.py) (Password review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lab1["Lab 1 Exercises"]
  node_lab1_runner["Lab 1 runner<br/>[main.py]"]
  node_password_review["Password review<br/>[task1.py]"]
  node_access_check["Access checks<br/>[Task2.py]"]
end

subgraph group_auth["Registration and Login"]
  node_registration_login["Registration and login<br/>[Task3.py]"]
  node_user_csv[("User CSV")]
  node_event_log[("Event log")]
end

subgraph group_lab2["Identity Models"]
  node_user_model["User model<br/>[task1.py]"]
  node_admin_model["Admin model<br/>[task1.py]"]
  node_session_model["Session model<br/>[task1.py]"]
end

subgraph group_shared["Shared Metadata"]
  node_student_metadata["Student metadata<br/>[student.py]"]
end

node_operator(("Lab operator"))

node_operator -->|"runs"| node_lab1_runner
node_lab1_runner -->|"calls"| node_password_review
node_lab1_runner -->|"calls"| node_access_check
node_lab1_runner -->|"calls"| node_registration_login
node_password_review -->|"imports"| node_student_metadata
node_access_check -->|"imports"| node_student_metadata
node_registration_login -->|"imports"| node_student_metadata
node_registration_login -->|"reads and writes"| node_user_csv
node_registration_login -->|"writes"| node_event_log
node_admin_model -->|"inherits"| node_user_model

click node_lab1_runner "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/main.py"
click node_password_review "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/task1.py"
click node_access_check "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/Task2.py"
click node_registration_login "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/Task3.py"
click node_user_model "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py"
click node_admin_model "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py"
click node_session_model "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py"
click node_student_metadata "https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/shared/student.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_lab1_runner,node_password_review,node_access_check toneBlue
class node_registration_login,node_user_csv,node_event_log toneAmber
class node_user_model,node_admin_model,node_session_model toneMint
class node_student_metadata toneRose
class node_operator toneIndigo
```

## Components

### Lab 1 Exercises

- [Lab 1 runner](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/main.py): `labs/lab01/main.py`
- [Password review](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/task1.py): `labs/lab01/task1.py`
- [Access checks](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/Task2.py): `labs/lab01/Task2.py`

### Registration and Login

- [Registration and login](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab01/Task3.py): `labs/lab01/Task3.py`
- **User CSV**
- **Event log**

### Identity Models

- [User model](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py): `labs/lab02/task1.py`
- [Admin model](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py): `labs/lab02/task1.py`
- [Session model](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/labs/lab02/task1.py): `labs/lab02/task1.py`

### Shared Metadata

- [Student metadata](https://github.com/stanislavkutskb2025-max/cybersecurity-python-labs/blob/main/shared/student.py): `shared/student.py`

### Other components

- **Lab operator**

## Connections

- Lab operator → Lab 1 runner: runs (evidence: `labs/lab01/main.py`)
- Lab 1 runner → Password review: calls (evidence: `labs/lab01/main.py`)
- Lab 1 runner → Access checks: calls (evidence: `labs/lab01/main.py`)
- Lab 1 runner → Registration and login: calls (evidence: `labs/lab01/main.py`)
- Password review → Student metadata: imports (evidence: `labs/lab01/task1.py`)
- Access checks → Student metadata: imports (evidence: `labs/lab01/Task2.py`)
- Registration and login → Student metadata: imports (evidence: `labs/lab01/Task3.py`)
- Registration and login → User CSV: reads and writes (evidence: `labs/lab01/Task3.py`)
- Registration and login → Event log: writes (evidence: `labs/lab01/Task3.py`)
- Admin model → User model: inherits (evidence: `labs/lab02/task1.py`)
