ofxparse icon indicating copy to clipboard operation
ofxparse copied to clipboard

Transaction Date, Value, Memo

Open ccrvlh opened this issue 7 years ago • 2 comments

Thanks for the tool, very useful! I was wondering if there's the complete set of functions anywhere, I'm trying to export a report with the transaction date, the memo and the value... thanks a lot.

ccrvlh avatar Dec 10 '17 04:12 ccrvlh

No, there isn't a complete set of functions, and I wish we had one. :(

You have a couple of options to find out how:

  1. Use a debugger to step through the code (google can show you how to do this), then print(dir(object or var goes here)) will print every attribute available on the transaction object.
  2. Look in the source code. ofxparse/ofxparse.py is where the code is located, and each class lists the attributes it has. Eg:
class Transaction(object):
    def __init__(self):
        self.payee = ''
        self.type = ''
        self.date = None
        self.amount = None
        self.id = ''
        self.memo = ''
        self.sic = None
        self.mcc = ''
        self.checknum = ''

jseutter avatar Jan 11 '18 14:01 jseutter

I just submitted #138 to flesh out the attribute documentation a bit.

cilynx avatar Apr 23 '18 00:04 cilynx