Expense Tracker CLI
A simple command-line expense tracker built with Python. This app helps you keep track of your expenses, calculate totals, and analyze spending by category.
🚀 Features:
Add expenses with amount, category, and date. View all recorded expenses. Calculate total spending. See spending breakdown by category. Stores data locally in a text file (expenses.txt).
📂 Project Structure: expense_tracker.py # Main script expenses.txt # Data file (auto-created)
Installation & Usage
Clone the repo: git clone https://github.com/your-username/expense-tracker-cli.git cd expense-tracker-cli
Run the script:
python expense_tracker.py
Use the menu to add and view expenses. Example === 💸 Expense Tracker CLI ===
- Add Expense
- View All Expenses
- View Total Spent
- View by Category
- Exit Choose an option (1–5): 1
Enter amount (₹): 250 Enter category (e.g. Food, Transport, Shopping): Food Enter date (YYYY-MM-DD): 2025-08-16 ✅ Expense added successfully!
📖 Requirements
Python 3.x
🛠️ Future Improvements
Export data to CSV/Excel.
Add monthly summaries.
Add a simple GUI or mobile app version.
📜 License
This project is licensed under the MIT License.