This Python script is a simple personal finance tracker that allows users to record their income and expenses, calculate their remaining budget, and display spending trends.
- Record income and expense transactions.
- Calculate the remaining budget based on recorded transactions.
- Display spending trends using a pie chart.
- Python 3.x
matplotlib
library for plotting charts (pip install matplotlib
)
-
Ensure you have Python 3.x installed on your system.
-
Install the
matplotlib
library by running:pip install matplotlib
-
Run the script
finance_tracker.py
. -
Follow the on-screen instructions to record transactions, calculate the remaining budget, display spending trends, and exit the program.
transactions.json
: JSON file used to store recorded transactions.finance_tracker.py
: Main Python script containing functions to load, save, record transactions, calculate the remaining budget, display spending trends, and run the main program loop.