Expense Tracker is a lightweight command-line tool for managing personal finances. Built with Python, it allows users to easily add, list, summarize, and delete expenses, making budgeting simple and efficient. With JSON-based storage, keep track of all spending with clear and organized data.
Expense Tracker CLI is a lightweight command-line tool designed for effortless expense management using Python. This solution enables efficient tracking of spending through seamless commands and stores data in a JSON format, ensuring both simplicity and clarity.
expenses.json file.Adding Expenses
Use the following command to add expenses:
expense-tracker add --description "Lunch" --amount 20
expense-tracker add --description "Coffee" --amount 5.50
expense-tracker add --description "Gas" --amount 45.75
Listing Expenses
To view all recorded expenses, simply execute:
expense-tracker list
Summarizing Expenses
Obtain total expenses using:
expense-tracker summary
# Or for a specific month:
expense-tracker summary --month 8
Deleting Expenses
Remove an expense by its ID with:
expense-tracker delete --id 1
| Command | Arguments | Description | Example |
|---|---|---|---|
add | --description <text> --amount <number> | Add a new expense | expense-tracker add --description "Groceries" --amount 85.50 |
list | None | List all expenses | expense-tracker list |
summary | [--month <1-12>] | Show total expenses by month or overall | expense-tracker summary --month 3 |
delete | --id <number> | Delete an expense by ID | expense-tracker delete --id 5 |
Expense Tracker CLI is an effective tool for individuals seeking to maintain control over their finances with minimal fuss. The intuitive design and efficient functionality cater to users looking for an accessible solution to expense tracking.
Unique project in the space of AI automation
Sign in to comment.