*************Food*************
Initial deposit 1000.00
Groceries -10.15
Restaurant -15.89
Transfer to Clothing -50.00
Coffee outside -85.00
Total: 838.96
***********Clothing***********
Transfer from Food 50.00
Initial deposit 500.00
Shoes -25.00
Total: 525.0
************Health************
Initial deposit 200.00
Urban Sport -60.00
Medicine -10.00
Supplements -40.00
Total: 90.0
*************Fun**************
Initial deposit 1000.00
Berghain -50.00
Opera -120.00
Total: 830.0
Percentage spent by category
100|
90|
80|
70|
60|
50|
40|
30| o o
20| o o o
10| o o o
0| o o o o
-------------
F C H F
o l e u
o o a n
d t l
h t
i h
n
g
The idea is that the user can run the expense tracker from the command line by reading their CSV file containing the budget data. Here's an example of what the CSV file structure could look like:
Category,Amount,Type,Description
Food,1000,DEP,initial deposit
Food,10.15,WDRW,groceries
Food,15.89,WDRW,restaurant and more foo
Food,50,TR,Transfer to Clothing
Category | Type | Amount | Description |
---|---|---|---|
Food | DEP | 1000 | Initial deposit |
Food | WDRW | 10.15 | Groceries |
Food | WDRW | 15.89 | Restaurant |
Food | TR | 50 | Clothing |
Clothing | DEP | 500 | Initial deposit |
Clothing | WDRW | 25 | Shoes |
Health | DEP | 200 | Initial deposit |
Fun | DEP | 1000 | Initial deposit |
Fun | WDRW | 50 | Berghain |
Fun | WDRW | 120 | Opera |
Food | WDRW | 85 | Coffee and cakes |
Health | WDRW | 60 | Urban Sport |
Health | WDRW | 10 | Medicine |
Health | WDRW | 40 | Supplements |
Note:
- Your header must look like this:
Category | Type | Amount | Description |
---|
- You must only use folloving types:
- DEP = deposit
- WDRW = withdraw
- TR = transfer(to other category)
- If you use TR, the description should be the name of the category to which you transfer the amount:
Food | TR | 50 | Clothing |
---|
python3 main.py /path/to/my/csv/file.csv