FYI, Ledger is CLI and designed for accounting and keeping books:<p><a href="https://github.com/jwiegley/ledger/wiki" rel="nofollow">https://github.com/jwiegley/ledger/wiki</a><p>There's a python implementation as well, if that's more up your hacking alley: <a href="https://furius.ca/beancount/" rel="nofollow">https://furius.ca/beancount/</a>