How rudranshbhajni/python-expense-tracker works
This is a small Python command-line expense tracker. A user selects an action in the menu; the app routes add and view requests to expense management, and total-spend requests to analysis. Adding validates the amount before saving a comma-separated record; viewing and analysis read saved records, with analysis summing their amounts. The README documents these capabilities and terminal launch. The local data file is named in source but is not present in the repository tree.
Main entry points: expense_manager.py Expense manager · file_handler.py File handler · main.py CLI menu · analysis.py Total analysis
Components 7
CLI interaction
- CLI menu
main.py
Expense management
- Expense manager
expense_manager.py - Amount validation
validation.py
Records and totals
- Total analysis
analysis.py - File handler
file_handler.py - Expense text file
Other components
- User
Connections 8
- User → CLI menu: chooses actions
main.py - CLI menu → Expense manager: routes add/view
main.py - CLI menu → Total analysis: routes total
main.py - Expense manager → Amount validation: checks amount
expense_manager.py - Expense manager → File handler: saves records
expense_manager.py - Expense manager → File handler: reads records
expense_manager.py - Total analysis → File handler: reads records
analysis.py - File handler → Expense text file: reads/writes
file_handler.py