This revised Expense Tracker program is a simple command-line application designed to help users manage and track their expenses. With simple modifications and integration of AI model, it gives user more facilitation in managing and tracking expenses.
- Show Table: Display a table of recorded expenses.
- Make an Entry: Add a new transaction with details including date, description, and amount.
- Sum of Transactions: Calculate and display the total expenses within a specified date range.
- AI Assistant: Ask questions about the expense data and receive AI-generated responses.
- Exit System: Safely exit the application.
To run this application, ensure you have the following Python libraries installed:
- pandas
- langchain-anthropic
- langchain-core
- langchain-community
You can install the required libraries using pip:
pip install pandas langchain-anthropic langchain-core langchain-community
-
exp_page.csv: A CSV file that holds the expense records with headers: Date, Transaction, and Amount.
-
expense_tracker.py: The main script where the Exp_Tracker class is defined, implementing the core functionality of the application.
- Show Table: Display current expenses.
- Make an Entry: Input transaction details.
- Sum of Transactions: Specify a date range and get the total amount.
- Ask AI Assistant: Inquire about your expenses in natural language.