2013-12-09 18:13:01 +00:00
|
|
|
====================
|
|
|
|
The Accounting API
|
|
|
|
====================
|
|
|
|
|
2013-12-09 20:59:36 +00:00
|
|
|
--------------
|
|
|
|
Dependencies
|
|
|
|
--------------
|
|
|
|
|
|
|
|
- ledger-cli version 3 (I have not tried with version 2.x)
|
|
|
|
- Flask (install by running ``pip install -r requirements.txt``).
|
|
|
|
|
|
|
|
|
2013-12-09 18:13:01 +00:00
|
|
|
-------
|
|
|
|
Usage
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-12-09 20:59:36 +00:00
|
|
|
# Run the web service
|
|
|
|
LEDGER_FILE=../path/to/your.ledger ./bin/serve
|
|
|
|
|
2013-12-11 08:32:35 +00:00
|
|
|
# Get a balance report via the web service
|
2013-12-12 21:25:31 +00:00
|
|
|
./bin/client balance
|