Skip to content

Instantly share code, notes, and snippets.

View erpreciso's full-sized avatar

erpreciso

View GitHub Profile
@erpreciso
erpreciso / gcash2ledger.py
Created July 31, 2019 08:28 — forked from nonducor/gcash2ledger.py
A simple script to convert an (uncompressed) gnucash XML file to the ledger-cli format
#! /usr/bin/python3
import os
import sys
import dateutil.parser
import xml.etree.ElementTree
nss = {'gnc': 'http://www.gnucash.org/XML/gnc',
'act': 'http://www.gnucash.org/XML/act',
'book': 'http://www.gnucash.org/XML/book',