You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a basic command-line interface (CLI) application built with Python to help you track your daily expenses. It allows you to easily add your expenditures, categorize them, and view your spending patterns over different time periods.
4
+
5
+
## Features
6
+
7
+
***Add New Expense:** Record new expenses by providing the amount, category (e.g., food, travel, shopping, bills), date, and an optional note.
8
+
***View Expenses:** Display your expenses for a specific day, week, month, or all recorded expenses.
9
+
***Filter by Category:** View expenses belonging to a particular category.
10
+
***Data Persistence:** Your expense data is saved to a plain text file (`expenses.txt`) so it's retained between sessions.
11
+
***Simple Command-Line Interface:** Easy-to-use text-based menu for interacting with the application.
12
+
13
+
## Technologies Used
14
+
15
+
***Python:** The core programming language used for the application logic.
16
+
***File Handling:** Used to store and retrieve expense data from a text file.
17
+
***`datetime` module:** For handling and managing date information for expenses.
18
+
19
+
## How to Run
20
+
21
+
1. Make sure you have Python installed on your system.
22
+
2. Save the `expense_tracker.py` file to your local machine.
23
+
3. Open your terminal or command prompt.
24
+
4. Navigate to the directory where you saved the file using the `cd` command.
25
+
5. Run the application by executing the command: `python expense_tracker.py`
26
+
27
+
## Basic Usage
28
+
29
+
1. Run the script. You will see a menu with different options.
30
+
2. To add a new expense, choose option `1` and follow the prompts to enter the required information.
31
+
3. To view expenses, choose option `2` and select the desired time period (day, week, month, or all).
32
+
4. To filter expenses by category, choose option `3` and enter the category you want to view.
33
+
5. To save any new expenses (though the application automatically saves on exit as well), choose option `4`.
34
+
6. To exit the application, choose option `5`.
35
+
36
+
## Potential Future Enhancements (Ideas for Expansion)
37
+
38
+
* Implement a monthly budget feature with alerts.
39
+
* Add a login system for multiple users.
40
+
* Generate visual reports like pie charts for category-wise spending (using libraries like `matplotlib`).
41
+
* Incorporate voice input for adding expenses (using `speech_recognition`).
42
+
* Migrate data storage to a more structured database like SQLite.
43
+
44
+
* Add functionality to export expense data to CSV files.
45
+
46
+
---
47
+
48
+
> This simple Personal Expense Tracker provides a basic yet functional way to manage your finances from the command line.
0 commit comments