beancount2ledger 1.3: beancount to ledger converter

37 views
Skip to first unread message

Martin Michlmayr

unread,
Nov 13, 2020, 7:12:00 AM11/13/20
to bean...@googlegroups.com
I released version 1.3 of beancount2ledger, the beancount to
ledger converter that was moved from "bean-report ledger" into a
standalone tool.

You can get beancount2ledger from GitHub:
https://github.com/beancount/beancount2ledger
or via pip install:
https://pypi.org/project/beancount2ledger/

Here are the changes in 1.3:

* Add rounding postings only when required
* Avoid printing too much precision for a currency
* Avoid creating two or more postings with null amount
* Add price to cost when needed by ledger
* Preserve posting order
* Add config option `indent`
* Show metadata with hledger output
* Support setting auxiliary dates and posting dates from metadata
* Support setting the code of transactions from metadata
* Support mapping of account and currency names
* Improve documentation:
* Add user guide
* Document limitations

--
Martin Michlmayr
https://www.cyrius.com/

Martin Michlmayr

unread,
Nov 13, 2020, 7:24:29 AM11/13/20
to bean...@googlegroups.com
Just to share some of my personal story moving from ledger to
beancount (a long process which I hope to finish this year).

I have written some beancount importers and currently use
beancount2ledger to import into ledger (since I haven't fulled moved
to beancount yet). I then use ledger2beancount to get a beancount
file. This approach allows me to convert things over one by one.

Regarding import: I have a plugin which tags transactions (setting
payee, narration, metadata, etc) based on some rules. (I still have to
email the list about this).

Another problem is that my muscle memory is too used to the ledger
query interface, so I intend to use beancount2ledger until I don't
need that anymore.

With version 1.3, I can go from ledger to beancount and back to ledger
and my test suite still works, so I'm definitely making good progress
with the migration (although I still have a lot of stuff to clean up /
fix).
Reply all
Reply to author
Forward
0 new messages