# himanyagupta/atm-banking-system architecture

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

- Interactive diagram: https://gitdiagram.com/himanyagupta/atm-banking-system
- Repository: https://github.com/himanyagupta/atm-banking-system

## Overview

This is a Tkinter ATM banking prototype backed by MySQL. Users authenticate, reach the banking menu, and can manage an account, check its balance, deposit cash, or withdraw cash. The principal runtime and its feature handlers are implemented together in atm_main.py, so several domain-stage nodes share that path. The excerpts show selected handlers and database connection setup; other feature links are based on the README and are dashed where their implementation details were not shown.

Main entry points: [`atm_main.py`](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py) (MySQL connection), [`create_db-table.py`](https://github.com/himanyagupta/atm-banking-system/blob/main/create_db-table.py) (Database setup), [`directory`](https://github.com/himanyagupta/atm-banking-system/tree/main/directory) (UI image assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["ATM application"]
  node_gui["Tkinter interface<br/>[atm_main.py]"]
  node_assets["UI image assets"]
  node_menu["ATM menu<br/>[atm_main.py]"]
end

subgraph group_accounts["Account services"]
  node_login["Authentication<br/>[atm_main.py]"]
  node_create["Account creation<br/>[atm_main.py]"]
  node_profile["Account management<br/>[atm_main.py]"]
end

subgraph group_banking["Banking operations"]
  node_balance["Balance inquiry<br/>[atm_main.py]"]
  node_deposit["Cash deposit<br/>[atm_main.py]"]
  node_withdraw["Cash withdrawal<br/>[atm_main.py]"]
end

subgraph group_storage["Persistence"]
  node_dbclient["MySQL connection<br/>[atm_main.py]"]
  node_schema["Database setup<br/>[create_db-table.py]"]
  node_mysql[("MySQL database")]
end

node_user(("ATM user"))

node_user -->|"uses"| node_gui
node_gui -->|"loads"| node_assets
node_gui -.->|"presents"| node_login
node_login -->|"opens"| node_menu
node_gui -.->|"offers"| node_create
node_menu -.->|"offers"| node_profile
node_menu -.->|"offers"| node_balance
node_menu -.->|"offers"| node_deposit
node_menu -.->|"offers"| node_withdraw
node_login -.->|"checks credentials"| node_dbclient
node_create -.->|"manages records"| node_dbclient
node_profile -.->|"manages records"| node_dbclient
node_balance -->|"reads balance"| node_dbclient
node_deposit -->|"updates balance"| node_dbclient
node_withdraw -->|"updates balance"| node_dbclient
node_dbclient -->|"connects"| node_mysql
node_schema -->|"creates schema"| node_mysql

click node_gui "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_assets "https://github.com/himanyagupta/atm-banking-system/tree/main/directory"
click node_login "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_create "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_profile "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_menu "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_balance "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_deposit "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_withdraw "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_dbclient "https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py"
click node_schema "https://github.com/himanyagupta/atm-banking-system/blob/main/create_db-table.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_gui,node_assets,node_menu,node_user toneBlue
class node_login,node_create,node_profile toneAmber
class node_balance,node_deposit,node_withdraw toneMint
class node_dbclient,node_schema,node_mysql toneRose
```

## Components

### ATM application

- [Tkinter interface](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [UI image assets](https://github.com/himanyagupta/atm-banking-system/tree/main/directory): `directory`
- [ATM menu](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`

### Account services

- [Authentication](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [Account creation](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [Account management](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`

### Banking operations

- [Balance inquiry](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [Cash deposit](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [Cash withdrawal](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`

### Persistence

- [MySQL connection](https://github.com/himanyagupta/atm-banking-system/blob/main/atm_main.py): `atm_main.py`
- [Database setup](https://github.com/himanyagupta/atm-banking-system/blob/main/create_db-table.py): `create_db-table.py`
- **MySQL database**

### Other components

- **ATM user**

## Connections

- ATM user → Tkinter interface: uses (evidence: `README.md`)
- Tkinter interface → UI image assets: loads (evidence: `atm_main.py`)
- Tkinter interface → Authentication: presents (evidence: `atm_main.py`)
- Authentication → ATM menu: opens (evidence: `atm_main.py`)
- Tkinter interface → Account creation: offers (evidence: `atm_main.py`)
- ATM menu → Account management: offers (evidence: `atm_main.py`)
- ATM menu → Balance inquiry: offers (evidence: `atm_main.py`)
- ATM menu → Cash deposit: offers (evidence: `atm_main.py`)
- ATM menu → Cash withdrawal: offers (evidence: `atm_main.py`)
- Authentication → MySQL connection: checks credentials (evidence: `atm_main.py`)
- Account creation → MySQL connection: manages records (evidence: `atm_main.py`)
- Account management → MySQL connection: manages records (evidence: `atm_main.py`)
- Balance inquiry → MySQL connection: reads balance (evidence: `atm_main.py`)
- Cash deposit → MySQL connection: updates balance (evidence: `atm_main.py`)
- Cash withdrawal → MySQL connection: updates balance (evidence: `atm_main.py`)
- MySQL connection → MySQL database: connects (evidence: `atm_main.py`)
- Database setup → MySQL database: creates schema (evidence: `create_db-table.py`)
