Aside from being written in compiled languages, are Ledger and hledger not a good starting point? https://github.com/jwiegley/ledger/wiki http://hledger.org/
I was about to re-invent that wheel, too. See http://thoughts.pro/beekeep/
But when I heard of Ledger I abandoned it. A lot of great work has been put into Ledger.
UpTheAsset looks like a great project, too, but someone should be fully aware of Ledger before reinventing that wheel.