Class Overview

NeilB's Avatar


17 Feb, 2018 12:14 PM

Just getting started with MoneyDance and really like what I have seen so far. I was trying to put together my first Python script for it but I am finding the data model hard to get my head around, for instance Txn and how it relates to Categories, Account, Payee etc.
I cant find any documentation for an overview of the relationships other than the basic class documentation.

  1. 1 Posted by NeilB on 17 Feb, 2018 12:51 PM

    NeilB's Avatar

    So far I have the following to flatten Account and Transactions. I realise that I will need to enhance this to include splits.

    print "Account AccountType CategoryCount Payee Category Date Amount"

      for txn in txnSet.iterableTxns():
        if str(txn.getAccount()) == "Nationwide Flex" and counter < 100:
          print "%s %s %d %s %s %u %s"%\
              (txn.getAccount().getAccountName(), txn.getAccount().getAccountType(), txn.getOtherTxnCount(), txn.getDescription(), txn.getOtherTxn(0).getAccount(), txn.getDateInt(), txn.getAccount().getCurrencyType().formatFancy(txn.getValue(), '.'))
          counter += 1

  2. 2 Posted by Mike Bray on 17 Feb, 2018 01:13 PM

    Mike Bray 's Avatar


    Have a look at

    It will give you some pointers. It is written with Java in mind but it will help with the data model.
    Sent from my iPad

  3. 3 Posted by NeilB on 17 Feb, 2018 02:11 PM

    NeilB's Avatar

    Thanks Mike
    Looks really helpful

    Shame the developers didnt take onboard your suggestions 3 years ago or at least find a way to pin your Wiki post.

    Thanks agin

  4. System closed this discussion on 19 May, 2018 02:20 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac