kjempelodott / banan

Accounting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collect all your bank statements in various formats in one place. A simple web interface lets you query the database and display the results as a graph or in plain text.

Setup

Unless your bank is yAbank or BankNorwegian, you have to add your own parser class to banan/parser.py. It must be a subclass of Parser. If possible, export your bank statements to CSV and make a subclass of CSVParser (least pain). The new class must be registered in map_of_maps in main.

Please read labels.conf.example to figure out how to put labels on different transactions. There are also a few options that can be set. Remember to save your config file as labels.conf.

After you have added your FooBank BAZ parser

map_of_maps = { 'foobank' : { '.baz' : FooBankBAZParser } }

and created a labels.conf, insert your bank statement file(s) with the command

./main -f foobar.baz -b foobank
Requirements:
  • A modern browser
  • python3
  • For PDF-support: pyPdf (pip3 install pypdf)
  • For Excel-support: xlrd (pip3 install xlrd)

Web interface

Start the server with the command

./main start

Go to localhost to browse your transactions history. You can also restart and stop the server.

TODO
  • Make it cross-browser (only tested with latest Firefox)
  • Fix long labels in plot
  • Pipe server output to banan.log

About

Accounting

License:MIT License


Languages

Language:Python 67.7%Language:JavaScript 17.8%Language:CSS 9.0%Language:HTML 5.4%