# evaspoet/student_finance architecture

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

- Interactive diagram: https://gitdiagram.com/evaspoet/student_finance
- Repository: https://github.com/evaspoet/student_finance

## Overview

This is a small Python student-finance menu program. Its intended workflow accepts a menu choice, writes a starting balance when logging spend, then reads and displays that balance. Budget, statistics, and value-management actions are stubs. A separate logging function targets a spend-log file but is not called by the menu. The shown logging statement appears syntactically invalid, which may prevent the script from running; the graph reflects the excerpted code, not verified runtime behavior.

Main entry points: [`Student_Finance/Student_Finance.py`](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py) (Menu), [`Values.txt`](https://github.com/evaspoet/student_finance/blob/main/Values.txt) (Balance file), [`Spend_Log.txt`](https://github.com/evaspoet/student_finance/blob/main/Spend_Log.txt) (Spend log file)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_menu["Menu<br/>[Student_Finance.py]"]
node_spend["Log spend<br/>[Student_Finance.py]"]
node_balance_reader["Read balance<br/>[Student_Finance.py]"]
node_budget["Show budget<br/>[Student_Finance.py]"]
node_stats["Show stats<br/>[Student_Finance.py]"]
node_manage["Manage values<br/>[Student_Finance.py]"]
node_values[("Balance file<br/>[Values.txt]")]
node_logger["Spend logger<br/>[Student_Finance.py]"]
node_spend_log[("Spend log file<br/>[Spend_Log.txt]")]

node_user -->|"chooses option"| node_menu
node_menu -->|"calls"| node_spend
node_spend -->|"writes balance"| node_values
node_menu -->|"calls"| node_balance_reader
node_balance_reader -->|"reads balance"| node_values
node_menu -->|"calls"| node_budget
node_menu -->|"calls"| node_stats
node_menu -->|"calls"| node_manage
node_logger -->|"appends entry"| node_spend_log

click node_menu "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_spend "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_balance_reader "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_budget "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_stats "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_manage "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_values "https://github.com/evaspoet/student_finance/blob/main/Values.txt"
click node_logger "https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py"
click node_spend_log "https://github.com/evaspoet/student_finance/blob/main/Spend_Log.txt"

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_user toneBlue
class node_menu,node_spend,node_balance_reader,node_budget,node_stats,node_manage,node_logger toneTeal
class node_values,node_spend_log toneAmber
```

## Components

### Other components

- **User**
- [Menu](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Log spend](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Read balance](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Show budget](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Show stats](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Manage values](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Balance file](https://github.com/evaspoet/student_finance/blob/main/Values.txt): `Values.txt`
- [Spend logger](https://github.com/evaspoet/student_finance/blob/main/Student_Finance/Student_Finance.py): `Student_Finance/Student_Finance.py`
- [Spend log file](https://github.com/evaspoet/student_finance/blob/main/Spend_Log.txt): `Spend_Log.txt`

## Connections

- User → Menu: chooses option (evidence: `Student_Finance/Student_Finance.py`)
- Menu → Log spend: calls (evidence: `Student_Finance/Student_Finance.py`)
- Log spend → Balance file: writes balance (evidence: `Student_Finance/Student_Finance.py`)
- Menu → Read balance: calls (evidence: `Student_Finance/Student_Finance.py`)
- Read balance → Balance file: reads balance (evidence: `Student_Finance/Student_Finance.py`)
- Menu → Show budget: calls (evidence: `Student_Finance/Student_Finance.py`)
- Menu → Show stats: calls (evidence: `Student_Finance/Student_Finance.py`)
- Menu → Manage values: calls (evidence: `Student_Finance/Student_Finance.py`)
- Spend logger → Spend log file: appends entry (evidence: `Student_Finance/Student_Finance.py`)
