1
1
Fork
You've already forked beancounttime
0
Plugin for beancount to mark some commodities as time and write them more conveniently.
Python 100%
2024年01月27日 23:00:02 +01:00
beancounttime This is version 0.1.1 2024年01月27日 23:00:02 +01:00
.gitignore This is version 0.1.1 2024年01月27日 23:00:02 +01:00
LICENSE This is version 0.1.1 2024年01月27日 23:00:02 +01:00
MANIFEST.in This is version 0.1.1 2024年01月27日 23:00:02 +01:00
pyproject.toml This is version 0.1.1 2024年01月27日 23:00:02 +01:00
README.md This is version 0.1.1 2024年01月27日 23:00:02 +01:00
setup.cfg This is version 0.1.1 2024年01月27日 23:00:02 +01:00
setup.py This is version 0.1.1 2024年01月27日 23:00:02 +01:00

beancounttime

After installing through pip, like this

$ pip install beancounttime

you can use the plugin in beancount to track time like this:

;; timetracking.beancount
plugin "beancounttime.time" "HR"
1900年01月01日 open Equity:Universe HR
1900年01月01日 open Expenses:Work HR
1900年01月01日 open Expenses:Work:Hacking HR
1900年01月01日 open Expenses:Work:Meeting HR
2000年01月01日 * ""
 Expenses:Work:Hacking 4.50 HR
 Expenses:Work:Meeting 3.30 HR
 Equity:Universe -8.20 HR

As you can see time is tracked in the form of HH.MM. The plugin will take care of converting this format into the decimal form, so beancount can work with it.

E.g. 3.30 HR (3 hours, 30 minutes) will be converted to 3.50 HR.

The plugin will only apply the conversion to transactions with the commodity that is passed as a parameter to the plugin (in the example HR).