Add script to generate pdf reports.

This commit is contained in:
2020-09-03 18:10:11 -04:00
parent 26941a5041
commit 4f9b717d31
4 changed files with 97 additions and 34 deletions

View File

@@ -9,9 +9,9 @@ handle the same use-case. I have tried a couple of them, as well as the
integrated CSV import of hledger, and ran into issues with all of them. That's
why I wrote yet another CSV to ledger tool.
There are two scripts, getofx, and toldg. The former uses the Python
There are two main scripts, getofx, and toldg. The former uses the Python
[ofxtools](https://ofxtools.readthedocs.io/en/latest/) library to download bank
transactions via OFX and stores them into CSV files. The latter takes CSV files
transactions via OFX and stores them into CSV files. The latter takes CSV files
and transforms them into ledger accounting files.
The OFX script works well for my workflow, but I am not sure if it would be
@@ -31,6 +31,12 @@ my workflows are editor based, and the mapping file-based approach makes it easy
to manipulate transactions. Also, the script relies on a single configuration
file, which makes the configuration clearer.
The directory `tools` contains additional scripts for personal use. Currently
their main use-case is to generate a PDF report with figures. I use hledger to
generate CSV data, plot figures with pandas, and then generate a report with
pandoc. A shell script executes this process. This workflow fulfills my
requirements, but is currently not useful for anybody else.
## Dependencies
The scripts rely on a couple of newer Python features, such as data-classes,
@@ -84,4 +90,5 @@ getting warnings.
- [x] Use OFX parser from ofxtools instead of parsing the XML
- [x] Autoappend latest OFX data to CSV file
- [x] Include example workspace with mock data to demo my workflow
- [x] Write script to generate PDF reports