Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction Date, Value, Memo #136

Open
ccrvlh opened this issue Dec 10, 2017 · 2 comments
Open

Transaction Date, Value, Memo #136

ccrvlh opened this issue Dec 10, 2017 · 2 comments

Comments

@ccrvlh
Copy link

ccrvlh commented Dec 10, 2017

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.

@jseutter
Copy link
Owner

jseutter commented Jan 11, 2018

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 = ''

@cilynx
Copy link
Contributor

cilynx commented Apr 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants