A simple command-line interface (CLI) tool to track your daily expenses. This project helps you practice Python fundamentals, including data structures, user input/output, and file handling.
- Add Expenses: Record new expenditures with amount, description, and category.
- View Expenses: Display a list of all recorded expenses.
- Data Persistence: (Planned/Future Feature) Save and load expenses to/from a file, so your data isn't lost when the program closes.
Follow these steps to get the Expense Tracker up and running on your local machine.
- Python 3.x installed on your system.
-
Clone the repository:
git clone git@github.com:sylvesterdas/expense-tracker.git cd expense-tracker -
Create a virtual environment: It's good practice to use a virtual environment to manage project dependencies.
python3 -m venv env
-
Activate the virtual environment:
- On macOS/Linux:
source env/bin/activate - On Windows (Command Prompt):
.\env\Scripts\activate.bat
- On Windows (PowerShell):
.\env\Scripts\Activate.ps1
- On macOS/Linux:
-
Install the project in editable mode: This installs the necessary dependencies and sets up the
expense-trackercommand.pip install -e .
Once setup, you can run the expense tracker using the command defined in pyproject.toml:
expense-trackerSimply follow the on-screen menu prompts:
- Choose
1to add a new expense. - Choose
2to view all your recorded expenses. - Choose
3to exit the application.