1 2 3 4 5 6
from __future__ import print_function import ledger for post in ledger.read_journal('test/regress/xact_code.dat').query('expenses'): print(post.xact.code)