This Python project is an expense tracker that allows users to add, view, and delete expenses. It uses SQLite for database storage and provides a command-line interface for interaction.
- Add Expense: Users can add new expenses by providing a title, amount, and category.
- Print Expense History: View the history of all expenses, including their details such as ID, title, date, amount, and category.
- Delete Expense: Remove an expense from the history by specifying its ID.
Make sure you have Python installed on your system.
-
Clone the repository:
git clone https://github.com/sehgalspandan/PyWallet.git
-
Navigate to the project directory:
cd PyWallet
-
Run the script:
python main.py
- Choose the appropriate option by entering the corresponding number.
- Follow the prompts to add, view, or delete expenses.
main.py
: The main Python script containing the Expense class and the logic for user interaction.greetings.json
: A JSON file containing a list of greetings used randomly.expenses.db
: SQLite database file storing the expenses. (Note: This file is created automatically when the script is run for the first time. It is not included in the repository.)
- This project was inspired by the need for a simple command-line expense tracker.
- Python
- Sqlite3