A command-line based Personal Expense Tracker built using Python.
This project demonstrates Python file handling using CSV, JSON, and text files to store and manage expense data.
- Add new expenses
- View all expenses
- Filter expenses by month
- Filter expenses by category
- Delete expenses
- Set and edit category budgets
- Generate monthly reports
- View activity logs
- Python
- CSV file handling
- JSON file handling
- CLI (Command Line Interface)
expense_tracker/
├── main.py # CLI interface
├── expenses.py # Expense management logic
├── reports.py # Report generation
├── config.py # Configuration and file paths
├── seed_expenses.py # Sample data generator
│
├── data/
│ ├── expenses.csv # Expense records
│ └── budgets.json # Budget configuration
│
└── reports/
├── activity.log # Application logs
└── report_YYYY_MM.txt # Generated reports
The program runs through a CLI menu system.
Users can:
- Add expenses
- View expense history
- Filter expenses by month or category
- Manage category budgets
- Generate monthly expense reports
All data is stored locally using file handling instead of a database.
Clone the repository or download the project.
Then run:
python main.py