tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2380-just-starting-to-learn-extensionsInfinite Kind: Discussion 2019-04-12T23:52:02Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/471622042019-04-11T16:43:12Z2019-04-11T16:47:42ZJust starting to learn extensions<div><blockquote>
<p>I wanted to use the sec_prices.py and the python_template.py to build an extension based on sec_prices, but I'm getting nowhere.</p>
</blockquote>
<p>I have not keep up with feature of latest version, but I don't think you can create an extension (one that can be installed) using just Python.</p>
<p>What you can do is to manually run Python script (such as one you mentioned above), in the MoneyBot Console (Windows -> Show MoneyBot)</p>
<p>Documentation for dev is spotty at best. My suggestion:</p>
<ul>
<li>Decide if you want to build a full-blown extension or just use Python script</li>
<li>If you'd like to build an extension, Mike Bray has material (both notes and actual source code) that are very useful. See <a href="https://bitbucket.org/mikerb/moneydance-2015/wiki/Home">https://bitbucket.org/mikerb/moneydance-2015/wiki/Home</a></li>
<li>If you'd like to just use Python script, start with something simple like</li>
</ul>
<pre>
<code>from com.infinitekind.moneydance.model import AccountUtil
book = moneydance.getCurrentAccountBook()
for acct in AccountUtil.getAccountIterator(book):
print acct</code>
</pre>
<p>which should print out list of all accounts.</p>
<p>Best,</p></div>hleofxquotes