A simple and practical command-line expense tracker built using Python. This project helps users record, manage, and analyze daily expenses directly from the terminal.
- ➕ Add daily expenses with category
- 📅 Automatic date tracking
- 💰 View total spending
- 🔍 Filter expenses by category
- 📋 View all recorded expenses
- 📊 Category-wise expense summary
- 💾 Persistent storage using JSON (data is saved locally)
- 🧾 Clean and readable JSON format
- Python
- Object-Oriented Programming (OOP)
- File Handling (JSON)
- CLI (Command Line Interface)
expense-tracker-cli/
│
├── main.py # CLI interface (user interaction)
├── tracker.py # Core logic (ExpenseTracker class)
├── expenses.json # Data storage
├── README.md # Project documentation
├── requirements.txt # Dependencies (none for now)
- Clone the repository:
git clone https://github.com/your-username/expense-tracker-cli.git
- Navigate into the project folder:
cd expense-tracker-cli
- Run the program:
python main.py
===== Expense Tracker =====
1. Add Expense
2. View Total
3. Filter by Category
4. Show All Expenses
5. Category Summary
6. Exit
[
{
"amount": 200,
"category": "Food",
"date": "2026-03-29"
},
{
"amount": 500,
"category": "Travel",
"date": "2026-03-29"
}
]
- 📅 Monthly expense analysis
- 📈 Data visualization (charts using matplotlib)
- 📤 Export data to CSV
- 🖥️ GUI version (Tkinter / Web app)
- 🔐 Authentication / multi-user support
Riya Patel
This project was built as a practical implementation of Python OOP concepts and CLI-based application design. It focuses on clean structure, usability, and real-world relevance.