r/Clojure • • Sep 13 '25

Any Clojure OSS personal finance manager?

11 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/notsohasty Sep 14 '25

I wish I could share the script but it's a bit hard to redact personal info from it, sorry! I used https://github.com/l3nz/cli-matic for parsing command line arguments, and simple file name regex matching to recognise which bank each statement is from. The beancount syntax is dead simple so it wasn't hard to hack something basic together to convert a bank statement into text that I can paste into the beancount ledger.

Probably the hardest thing was just understanding how to lay out the beancount ledger file in the first place, because there's special syntax for declaring the opening balances of bank statements etc. Here's a good intro article:
https://medium.com/pragmatic-programmers/track-your-personal-finances-using-python-35b7d68b67ab

The author of that article also wrote a book "tracking your personal finances using python" that I bought for $10 and I thought was well worth it, but of course I'm implementing the ideas in Clojure instead of python. I also found that I didn't need many of the more advanced features, so I'm only implementing a subset of what's discussed in that book.

3

u/notsohasty Sep 14 '25

By the way, I was initially worried about how battle-tested (or not) beancount is but I came across a guy who uses it as the accounting system for his business with 60 employees, so I figure it's more than good enough for my personal accounts.
https://news.ycombinator.com/item?id=30144119