https://github.com/linkid/rst2accounts
Make operations in your ReST table accounts
https://github.com/linkid/rst2accounts
restructuredtext table
Last synced: about 1 year ago
JSON representation
Make operations in your ReST table accounts
- Host: GitHub
- URL: https://github.com/linkid/rst2accounts
- Owner: Linkid
- Created: 2016-08-22T08:11:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-31T21:31:48.000Z (almost 10 years ago)
- Last Synced: 2025-02-16T14:23:45.781Z (over 1 year ago)
- Topics: restructuredtext, table
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
ReST to accounts
================
.. image:: https://travis-ci.org/Linkid/rst2accounts.svg?branch=master
:target: https://travis-ci.org/Linkid/rst2accounts
:alt: Build Status
Calculate totals per operations in your accounts using a ReST table.
Example
-------
Your accounts look like that::
Month
-----
+======+===============+========+========+=============+
| Date | Operation | Debit | Credit | Total month |
+======+===============+========+========+=============+
| 01 | A | 1 | / | |
| 02 | B | 11 | / | |
| 03 | C | 111.1 | / | |
| 04 | D | / | 1111.11| |
| 05 | E |1111.01 | / | |
+------+---------------+--------+--------+-------------+
| / | Total month | 000.00 | 000.00| 000.00 |
+------+---------------+--------+--------+-------------+
and you would like to complete the last column and the last line. So, put it in
a file and do::
>>> rst2accounts my_accounts.rst
Month
-----
+======+===============+========+========+=============+
| Date | Operation | Debit | Credit | Total month |
+======+===============+========+========+=============+
| 01 | A | 1 | / | -1.0 |
| 02 | B | 11 | / | -12.0 |
| 03 | C | 111.1 | / | -123.1 |
| 04 | D | / | 1111.11| 988.01 |
| 05 | E |1111.01 | / | -123.0 |
+------+---------------+--------+--------+-------------+
| / | Total month |1234.11 | 1111.11| -123.0 |
+------+---------------+--------+--------+-------------+
Easy, right?