gregorias / findata-transcoder

Scripts that create ledger entries from financial data files
GNU Affero General Public License v3.0
2 stars 0 forks source link

findata-transcoder

Findata Transcoder is a CLI tool that parses and transcodes CSV and other text-based financial statements into a ledger-like format.

I use it in my automation system that downloads financial statements and puts their data into one big ledger of my personal finances. There are other tools I've written that handle fetching those statements, preprocessing them (e.g., pdftotext on PDF files), and orchestrating.

Building

Some dependencies install PCRE. On macOS, you can use brew install pcre.

Installation

Install the binary with

stack install

[Optional] Shell completion

To provide fish shell completion run

findata-transcoder --fish-completion-script (which findata-transcoder) \
  > ~/.config/fish/completions/findata-transcoder.fish

For other shells, check out optparse-applicative's documentation and adapt accordingly. findata-transcoder uses optparse-applicative as the CLI framework.