This Expense Tracker project is a Python application designed to manage financial expenses. It uses object-oriented programming concepts to model individual expenses and a database to manage them. The project contains two main classes: Expense
and ExpenseDatabase
. The Expense
class models individual expenses with attributes like ID, title, amount, creation, and update timestamps. The ExpenseDatabase
class manages a collection of Expense
objects, providing functionalities to add, remove, and retrieve expenses.
- Python 3.6 or higher
- Git (for cloning the repository)
To clone the repository to your local machine, follow these steps:
- Open your terminal.
- Choose or create a directory where you want to clone the repository.
- Run the following command: git clone
https://github.com/your-username/expense-tracker.git
Replace https://github.com/your-username/expense-tracker.git
with your repository's URL.
- Go to the cloned repository's directory:
cd expense-tracker
To run the Expense Tracker application, follow these steps:
- Ensure you are in the project's root directory.
- Run the application using Python:
python expenses.py
Replace main.py
with the name of your Python script if it's different.
After running the application, you can interact with it via the command line interface. The application allows you to:
- Add a new expense.
- Update an existing expense.
- Remove an expense.
- Retrieve an expense by its ID or title.
- View all expenses.
Follow the on-screen prompts to navigate through these options.
If you wish to contribute to this project, please follow the standard GitHub pull request process:
- Fork the repository.
- Create a new branch for your feature.
- Commit your changes.
- Push to the branch.
- Create a new Pull Request.