Ledger to OFX

I keep my finances in J Wiegley’s Ledger format, which means everything is in a flat text file, for easy editing. I recently decided to use Xero.com for both my company and personal accounts. Unfortunately, this means that I somehow needed to upload all my past transaction data. So I wrote a Python script to convert Ledger format account files to OFX. You can grab a copy of the source code over at GitHub.