4 ms·
I wrote a small, single-script clone in Python: https://github.com/danpat/uledger https://github.com/danpat/uledger I wanted to be able to group all my assert
by danpat 11y ago
I wrote a small, single-script clone in Python:
https://github.com/danpat/uledger https://github.com/danpat/uledger
I wanted to be able to group all my assertions together. This means the assertion needs to be able to retroactively calculate the balance on a given date. ledger-cli's assert doesn't support this. hledger does, but, well, I'm not a Haskell guy and the whole Haskell ecosystem seemed...cumbersome...to install.
uledger supports a useful-to-me subset of ledger-cli, primarily nested accounts, multiple currencies and out-of-order assertions and transaction entry. It has a bunch of tests and a very simple web balance interface. My favourite feature is the accounting-equation balance feature:
2015-01-01 Opening Balance
Equity:Owners Contributions $-100
Assets:Bank $100
2015-01-01 Buying widgets
Liabilities:Credit Card $-50
Expenses:Parts
2015-01-03 Some Income
Income:Consulting $-200
Assets:Bank $200
assert balance 2015-01-02 Expenses $50
assert equation 2015-01-04 Assets - Liabilities = Equity + Income - Expenses
Feedback/patches welcome.