<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
</div>
<divclass="section"id="module-accounting.client">
<spanid="accounting-client-module"></span><h2>accounting.client module<aclass="headerlink"href="#module-accounting.client"title="Permalink to this headline">¶</a></h2>
<dlclass="class">
<dtid="accounting.client.Client">
<emclass="property">class </em><ttclass="descclassname">accounting.client.</tt><ttclass="descname">Client</tt><big>(</big><em>host=None</em>, <em>json_encoder=None</em>, <em>json_decoder=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get</tt><big>(</big><em>path</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client.get"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client.get"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="accounting.client.Client.get_balance">
<ttclass="descname">get_balance</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client.get_balance"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client.get_balance"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="accounting.client.Client.get_register">
<ttclass="descname">get_register</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client.get_register"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client.get_register"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="accounting.client.Client.post">
<ttclass="descname">post</tt><big>(</big><em>path</em>, <em>payload</em>, <em>**kw</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client.post"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client.post"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">simple_transaction</tt><big>(</big><em>from_acc</em>, <em>to_acc</em>, <em>amount</em>, <em>symbol=None</em>, <em>payee=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#Client.simple_transaction"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.Client.simple_transaction"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="function">
<dtid="accounting.client.main">
<ttclass="descclassname">accounting.client.</tt><ttclass="descname">main</tt><big>(</big><em>argv=None</em>, <em>prog=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#main"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.main"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="accounting.client.print_balance_accounts">
<ttclass="descclassname">accounting.client.</tt><ttclass="descname">print_balance_accounts</tt><big>(</big><em>accounts</em>, <em>level=0</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#print_balance_accounts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.print_balance_accounts"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="accounting.client.print_transactions">
<ttclass="descclassname">accounting.client.</tt><ttclass="descname">print_transactions</tt><big>(</big><em>transactions</em><big>)</big><aclass="reference internal"href="../_modules/accounting/client.html#print_transactions"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.client.print_transactions"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</div>
<divclass="section"id="module-accounting.config">
<spanid="accounting-config-module"></span><h2>accounting.config module<aclass="headerlink"href="#module-accounting.config"title="Permalink to this headline">¶</a></h2>
<spanid="accounting-decorators-module"></span><h2>accounting.decorators module<aclass="headerlink"href="#module-accounting.decorators"title="Permalink to this headline">¶</a></h2>
<dlclass="function">
<dtid="accounting.decorators.jsonify_exceptions">
<ttclass="descclassname">accounting.decorators.</tt><ttclass="descname">jsonify_exceptions</tt><big>(</big><em>func</em><big>)</big><aclass="reference internal"href="../_modules/accounting/decorators.html#jsonify_exceptions"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.decorators.jsonify_exceptions"title="Permalink to this definition">¶</a></dt>
<dd><p>Wraps a Flask endpoint and catches any AccountingException-based
exceptions which are returned to the client as JSON.</p>
<spanid="accounting-exceptions-module"></span><h2>accounting.exceptions module<aclass="headerlink"href="#module-accounting.exceptions"title="Permalink to this headline">¶</a></h2>
<emclass="property">exception </em><ttclass="descclassname">accounting.exceptions.</tt><ttclass="descname">AccountingException</tt><aclass="reference internal"href="../_modules/accounting/exceptions.html#AccountingException"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.exceptions.AccountingException"title="Permalink to this definition">¶</a></dt>
<spanid="accounting-gtkclient-module"></span><h2>accounting.gtkclient module<aclass="headerlink"href="#module-accounting.gtkclient"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><ttclass="descclassname">accounting.gtkclient.</tt><ttclass="descname">AccountingApplication</tt><aclass="reference internal"href="../_modules/accounting/gtkclient.html#AccountingApplication"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">load_ui</tt><big>(</big><em>path</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#AccountingApplication.load_ui"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.load_ui"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">on_about_dialog_response</tt><big>(</big><em>widget</em>, <em>response_type</em><big>)</big><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.on_about_dialog_response"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">on_show_about_activate</tt><big>(</big><em>widget</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#AccountingApplication.on_show_about_activate"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.on_show_about_activate"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">on_transaction_refresh_activate</tt><big>(</big><em>widget</em><big>)</big><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.on_transaction_refresh_activate"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">on_transaction_view_cursor_changed</tt><big>(</big><em>widget</em><big>)</big><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.on_transaction_view_cursor_changed"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">on_transactions_loaded</tt><big>(</big><em>transactions</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#AccountingApplication.on_transactions_loaded"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.AccountingApplication.on_transactions_loaded"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="function">
<dtid="accounting.gtkclient.indicate_activity">
<ttclass="descclassname">accounting.gtkclient.</tt><ttclass="descname">indicate_activity</tt><big>(</big><em>func_or_str</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#indicate_activity"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.indicate_activity"title="Permalink to this definition">¶</a></dt>
<ttclass="descclassname">accounting.gtkclient.</tt><ttclass="descname">indicate_activity_done</tt><big>(</big><em>func</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#indicate_activity_done"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.indicate_activity_done"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="accounting.gtkclient.main">
<ttclass="descclassname">accounting.gtkclient.</tt><ttclass="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/gtkclient.html#main"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.gtkclient.main"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</div>
<divclass="section"id="module-accounting.models">
<spanid="accounting-models-module"></span><h2>accounting.models module<aclass="headerlink"href="#module-accounting.models"title="Permalink to this headline">¶</a></h2>
<dlclass="class">
<dtid="accounting.models.Account">
<emclass="property">class </em><ttclass="descclassname">accounting.models.</tt><ttclass="descname">Account</tt><big>(</big><em>name=None</em>, <em>amounts=None</em>, <em>accounts=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/models.html#Account"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.models.Account"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><ttclass="descclassname">accounting.models.</tt><ttclass="descname">Amount</tt><big>(</big><em>amount=None</em>, <em>symbol=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/models.html#Amount"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.models.Amount"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><ttclass="descclassname">accounting.models.</tt><ttclass="descname">Posting</tt><big>(</big><em>account=None</em>, <em>amount=None</em>, <em>metadata=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/models.html#Posting"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.models.Posting"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">generate_id</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/models.html#Transaction.generate_id"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.models.Transaction.generate_id"title="Permalink to this definition">¶</a></dt>
<spanid="accounting-transport-module"></span><h2>accounting.transport module<aclass="headerlink"href="#module-accounting.transport"title="Permalink to this headline">¶</a></h2>
<dlclass="class">
<dtid="accounting.transport.AccountingDecoder">
<emclass="property">class </em><ttclass="descclassname">accounting.transport.</tt><ttclass="descname">AccountingDecoder</tt><aclass="reference internal"href="../_modules/accounting/transport.html#AccountingDecoder"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.transport.AccountingDecoder"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">dict_to_object</tt><big>(</big><em>d</em><big>)</big><aclass="reference internal"href="../_modules/accounting/transport.html#AccountingDecoder.dict_to_object"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.transport.AccountingDecoder.dict_to_object"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="accounting.transport.AccountingEncoder">
<emclass="property">class </em><ttclass="descclassname">accounting.transport.</tt><ttclass="descname">AccountingEncoder</tt><big>(</big><em>skipkeys=False</em>, <em>ensure_ascii=True</em>, <em>check_circular=True</em>, <em>allow_nan=True</em>, <em>sort_keys=False</em>, <em>indent=None</em>, <em>separators=None</em>, <em>default=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/transport.html#AccountingEncoder"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.transport.AccountingEncoder"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">default</tt><big>(</big><em>o</em><big>)</big><aclass="reference internal"href="../_modules/accounting/transport.html#AccountingEncoder.default"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.transport.AccountingEncoder.default"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</div>
<divclass="section"id="module-accounting.web">
<spanid="accounting-web-module"></span><h2>accounting.web module<aclass="headerlink"href="#module-accounting.web"title="Permalink to this headline">¶</a></h2>
<p>This module contains the high-level webservice logic such as the Flask setup
and the Flask endpoints.</p>
<dlclass="function">
<dtid="accounting.web.index">
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">index</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/web.html#index"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.web.index"title="Permalink to this definition">¶</a></dt>
<dd><p>Hello World!</p>
</dd></dl>
<dlclass="function">
<dtid="accounting.web.init_ledger">
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">init_ledger</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/web.html#init_ledger"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.web.init_ledger"title="Permalink to this definition">¶</a></dt>
<dd><p><aclass="reference external"href="http://flask.pocoo.org/docs/api/#flask.Flask.before_request"title="(in Flask v0.10)"><ttclass="xref py py-meth docutils literal"><spanclass="pre">flask.Flask.before_request()</span></tt></a>-decorated method that initializes an
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><aclass="reference internal"href="../_modules/accounting/web.html#main"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.web.main"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="accounting.web.transaction_get">
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">transaction_get</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/web.html#transaction_get"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.web.transaction_get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the JSON-serialized output of <ttclass="xref py py-meth docutils literal"><spanclass="pre">accounting.Ledger.reg()</span></tt></p>
</dd></dl>
<dlclass="function">
<dtid="accounting.web.transaction_post">
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">transaction_post</tt><big>(</big><big>)</big><aclass="reference internal"href="../_modules/accounting/web.html#transaction_post"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#accounting.web.transaction_post"title="Permalink to this definition">¶</a></dt>
<dd><p>REST/JSON endpoint for transactions.</p>
<p>Current state:</p>
<p>Takes a POST request with a <ttclass="docutils literal"><spanclass="pre">transactions</span></tt> JSON payload and writes it to
the ledger file.</p>
<p>Requires the <ttclass="docutils literal"><spanclass="pre">transactions</span></tt> payload to be __type__-annotated:</p>
<divclass="highlight-python"><pre>2013-01-01 Kindly T. Donor
Income:Foo:Donation $ -100
Assets:Checking $ 100</pre>
</div>
</dd></dl>
<dlclass="function">
<dtid="accounting.web.transaction_update">
<ttclass="descclassname">accounting.web.</tt><ttclass="descname">transaction_update</tt><big>(</big><em>transaction_id=None</em><big>)</big><aclass="headerlink"href="#accounting.web.transaction_update"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</div>
<divclass="section"id="module-accounting">
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-accounting"title="Permalink to this headline">¶</a></h2>
</div>
</div>
</div>
</div>
</div>
<divclass="sphinxsidebar">
<divclass="sphinxsidebarwrapper">
<h3><ahref="../index.html">Table Of Contents</a></h3>