Skip to content

Instantly share code, notes, and snippets.

@afh
Created January 31, 2014 21:20
Show Gist options
  • Select an option

  • Save afh/8743397 to your computer and use it in GitHub Desktop.

Select an option

Save afh/8743397 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import json
import ledger
total = ledger.Balance()
journal = ledger.read_journal('test/input/demo.ledger')
for post in journal.query(''):
total += post.amount
print post.account, post.amount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment