Just FYI. I'm using piecash for GnuCash book export into ledger format and am currently adding a feature here and there as I go.
piecash is a pure-Python library / CLI that reads GnuCash books in SQLite format and has an option to export a ledger database. The base idea upon it was build comes from https://github.com/MatzeB/pygnucash/blob/master/gnucash2ledger.py by Matthias Braun. The adaptations include Python 3 support, new syntax updates, and support for GnuCash 3 SQLite books. Both GnuCash 2 & 3 formats are supported in different versions of the library. In my branch (https://github.com/MisterY/piecash) I've added an option to separately export commodities, accounts, prices, and transactions, in addition to the default where all of the elements are exported into a single file. This comes in handy when using --strict option and comparing the changes in a git repo. I expect the changes to be merged into the original piecash repository at some point. The whole functionality is really helpful for utilizing the features from different parts of the ecosystem - GnuCash and ledger-type components. I about to explore the reporting functionality of ledger so exporting the transactions periodically is not that bad. It would be nice to be able to go the other way but it may require some time. All the parts are there as piecash allows writing to GnuCash book, it just requires defining the goal and putting it together. Any commens, suggestions, and contributions are more than welcome. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
