Expense Data - file format
A simple budget for your family using plain text for easy version
control. This project defines the file format, expense data (EDA) and a
tool to process it with.
Table of Contents
1 Quick start ....................................................
2 File format ....................................................
2.1 Complete example .............................................
1 Quick start
$ go install sogvin.com/eda/cmd/budget@latest
$ budget example.eda
3 200 000 loans left
---------- --------------------
125 car1
2 666 car1 loan
125 car2
500 daughter mobile
2 500 electricity
6 000 food
416 garbage
8 166 house loan
400 internet
2 000 man car1
83 man life
300 man mobile
5 000 saving
166 son daughter
400 son mobile
333 water
2 000 wife car2
83 wife life
300 wife mobile
---------- --------------------
44 896 sum
2 people
---------- --------------------
22 448 each
2 File format
Comments start with a '#' and empty lines are ignored. Special
comments '# expense' and '# loan' indicate how following lines should
be interpreted.
# expense signals following lines are expenses (default)
# loan signals following lines are loan entries
Expenses are lines with AMOUNT/PERIOD [TAGS...]. Period can be 'y'
for year or 'm' for month.
# expense
1000/m electricity
100/m mobile
40/m github
...
Loans are lines with LEFT INTEREST INSTALLMENT [TAGS...]
# loan
686453 3.34 599 loan house
68800 5.39 700 loan car
...
2.1 Complete example
# vehicles
2000/m man car1
2000/m wife car2
# digital
300/m man mobile
300/m wife mobile
500/m daughter mobile
400/m son mobile
400/m internet
# home and utilities
30000/y electricity
4000/y water
5000/y garbage
6000/m food
5000/m saving
# insurrance
1000/y wife life
1000/y man life
2000/y son daughter
1500/y car1
1500/y car2
# loan
2000000 5.0 5000 house loan
1000000 5.0 4000 house loan
200000 4.0 2000 car1 loan