Better HN
topnewbestaskshowjobs
Log inSign up

k_marussy

1 karma · joined Oct 5, 2018 (8y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

You can easily create any kind of abstraction with beancount's programming interface [1]. I find it very comfortable, because I can manipulate the data structure directly (and not just the plain text as in e.g. vim).

For example, here is a plugin that I wrote to "delay" a posting of a transaction to another date via an intermediate ("transfer") account [2] and its tests [3] that solves a problem pretty similar to yours (I should someday package my plugins properly and maybe put them on PyPI, but I haven't had the time yet). The beancount documentations also has a list of existing published plugins [4].

[1]: https://beancount.github.io/docs/beancount_scripting_plugins...

[2]: https://linx.marussy.com/selif/v31rtbi5.py

[3]: https://linx.marussy.com/selif/tpwlujdk.py

[4]: https://beancount.github.io/docs/external_contributions.html