# screamingweasel/elite-102 architecture

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

- Interactive diagram: https://gitdiagram.com/screamingweasel/elite-102
- Repository: https://github.com/screamingweasel/elite-102

## Overview

This is a small, incomplete Python course project: despite the README’s online-banking description, the implemented runtime is mainly a command-line customer/user prototype backed by MySQL. The principal implemented path is menu entry → login or user creation → database access; customer creation and editing are partial, and the menu’s deposit call is undefined. The README also describes account and administrator capabilities not implemented in the sampled code; those are shown separately as documented scope. Connections are limited to relationships visible in excerpts or the README.

Main entry points: [`main.py`](https://github.com/screamingweasel/elite-102/blob/main/main.py) (Main menu), [`database.py`](https://github.com/screamingweasel/elite-102/blob/main/database.py) (Customer operations), [`README.md`](https://github.com/screamingweasel/elite-102/blob/main/README.md) (Account login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Command-line app"]
  node_menu["Main menu<br/>[main.py]"]
  node_login["Login<br/>[main.py]"]
  node_user_lookup["User lookup<br/>[main.py]"]
  node_user_creation["User creation<br/>[main.py]"]
  node_user_insert["Insert user<br/>[main.py]"]
  node_customer_creation["Customer creation<br/>[main.py]"]
  node_customer_edit["Edit customer<br/>[main.py]"]
  node_deposit_menu["Deposit menu option<br/>[main.py]"]
end

subgraph group_data["MySQL persistence"]
  node_db_connection["Connection setup<br/>[main.py]"]
  node_schema[("Customer schema<br/>[database.py]")]
  node_customer_store["Customer operations<br/>[database.py]"]
end

subgraph group_scope["Documented banking scope"]
  node_documented_login["Account login<br/>[README.md]"]
  node_documented_accounts["Account management<br/>[README.md]"]
  node_documented_transactions["Balance and transactions<br/>[README.md]"]
  node_documented_admin["Administrator functions<br/>[README.md]"]
end

node_operator(("User"))
node_mysql[("MySQL")]

node_operator -->|"uses"| node_menu
node_menu -->|"calls"| node_login
node_login -->|"looks up"| node_user_lookup
node_user_lookup -->|"opens"| node_db_connection
node_db_connection -->|"connects"| node_mysql
node_menu -->|"calls"| node_user_creation
node_user_creation -->|"calls"| node_user_insert
node_user_insert -->|"opens"| node_db_connection
node_menu -->|"calls"| node_customer_edit
node_menu -->|"dispatches"| node_deposit_menu
node_operator -->|"enters details"| node_customer_creation
node_customer_creation -->|"checks email"| node_db_connection
node_customer_creation -->|"adds customer"| node_customer_store
node_schema -->|"creates tables in"| node_mysql
node_customer_store -->|"reads and writes"| node_mysql
node_operator -.->|"authenticates"| node_documented_login
node_documented_login -.->|"enables"| node_documented_accounts
node_documented_accounts -.->|"supports"| node_documented_transactions
node_operator -.->|"administers"| node_documented_admin

click node_menu "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_login "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_user_lookup "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_user_creation "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_user_insert "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_customer_creation "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_customer_edit "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_deposit_menu "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_db_connection "https://github.com/screamingweasel/elite-102/blob/main/main.py"
click node_schema "https://github.com/screamingweasel/elite-102/blob/main/database.py"
click node_customer_store "https://github.com/screamingweasel/elite-102/blob/main/database.py"
click node_documented_login "https://github.com/screamingweasel/elite-102/blob/main/README.md"
click node_documented_accounts "https://github.com/screamingweasel/elite-102/blob/main/README.md"
click node_documented_transactions "https://github.com/screamingweasel/elite-102/blob/main/README.md"
click node_documented_admin "https://github.com/screamingweasel/elite-102/blob/main/README.md"

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_login,node_user_lookup,node_user_creation,node_user_insert,node_customer_creation,node_customer_edit,node_deposit_menu,node_operator toneBlue
class node_db_connection,node_schema,node_customer_store,node_mysql toneAmber
class node_documented_login,node_documented_accounts,node_documented_transactions,node_documented_admin toneMint
```

## Components

### Command-line app

- [Main menu](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Login](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [User lookup](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [User creation](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Insert user](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Customer creation](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Edit customer](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Deposit menu option](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`

### MySQL persistence

- [Connection setup](https://github.com/screamingweasel/elite-102/blob/main/main.py): `main.py`
- [Customer schema](https://github.com/screamingweasel/elite-102/blob/main/database.py): `database.py`
- [Customer operations](https://github.com/screamingweasel/elite-102/blob/main/database.py): `database.py`

### Documented banking scope

- [Account login](https://github.com/screamingweasel/elite-102/blob/main/README.md): `README.md`
- [Account management](https://github.com/screamingweasel/elite-102/blob/main/README.md): `README.md`
- [Balance and transactions](https://github.com/screamingweasel/elite-102/blob/main/README.md): `README.md`
- [Administrator functions](https://github.com/screamingweasel/elite-102/blob/main/README.md): `README.md`

### Other components

- **User**
- **MySQL**

## Connections

- User → Main menu: uses (evidence: `main.py`)
- Main menu → Login: calls (evidence: `main.py`)
- Login → User lookup: looks up (evidence: `main.py`)
- User lookup → Connection setup: opens (evidence: `main.py`)
- Connection setup → MySQL: connects (evidence: `main.py`)
- Main menu → User creation: calls (evidence: `main.py`)
- User creation → Insert user: calls (evidence: `main.py`)
- Insert user → Connection setup: opens (evidence: `main.py`)
- Main menu → Edit customer: calls (evidence: `main.py`)
- Main menu → Deposit menu option: dispatches (evidence: `main.py`)
- User → Customer creation: enters details (evidence: `main.py`)
- Customer creation → Connection setup: checks email (evidence: `main.py`)
- Customer creation → Customer operations: adds customer (evidence: `main.py`)
- Customer schema → MySQL: creates tables in (evidence: `database.py`)
- Customer operations → MySQL: reads and writes (evidence: `database.py`)
- User → Account login: authenticates (evidence: `README.md`)
- Account login → Account management: enables (evidence: `README.md`)
- Account management → Balance and transactions: supports (evidence: `README.md`)
- User → Administrator functions: administers (evidence: `README.md`)
