Joel Swanson schrieb am 25.08.2017 um 13:56:
> 
> |
>  importledger
>      for xact in ledger.read_journal("sample.dat").xacts():
>          for post in xact.posts():
>              print"Transferring %s to/from %s"%(post.amount,post.account)
> |
> 
> I'm able to assign post.amount and post.account to variables/lists in my
> python code. I discovered I can also use post.date for the date.
> 
> I'm relatively new at python. Where can I find a list of what other
> options are available in the 'post' object? Is this something I can find
> somewhere in Ledger's source code?

When you run the code above you can use 'dir(post)' or 'dir(xact)' to
get the properties and methods of the object.



Best,
Marco.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to