Mmh, that's it? I cannot bring ledger (great) together with python
(great, too)?
What I did so far:
1. Compile ledger from git with --python
2. dir(ledger) shows everything form ACCOUNT_EXT_AUTO_VIRTUALIZE', to
'value_context'
3. Invoking this script:
#!/usr/bin/env python
import ledger
for xact in ledger.read_journal("ledger.dat").xacts:
for post in xact.posts:
print "Transferring %s to/from %s" % (post.amount, post.account)
in this way:
ledger python script.py
leads to:
Traceback (most recent call last):
File "scr.py", line 4, in <module>
for xact in ledger.read_journal("ledger.dat").xacts:
AttributeError: 'module' object has no attribute 'read_journal'
henry