Metadata-Version: 2.4
Name: ynab-csv-converter
Version: 1.0.3
Summary: Convert bank record CSV files in various formats to YNAB CSV format
License-Expression: Apache-2.0
Author: Anders Ingemann
Requires-Python: >= 3.11,<4
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: docopt (>=0.6.2,<1)
Requires-Dist: jsonschema (>=4.25.1,<5)
Requires-Dist: pyyaml (>=6.0,<7)
Requires-Dist: termcolor (>=1.1.0,<2)
Description-Content-Type: text/markdown

# YNAB CSV Converter

Converts bank record CSV files in various formats to YNAB CSV format.

Any previously converted files will be looked up so that a converted
export only contains unique transactions with respect to already
converted exports.

## Installation

```sh
pipx install ynab-csv-converter
```

## Usage

Usage: `ynab-csv-converter [options] FORMULA INFILE...`

## Formula

```yml
format: sparekassen
outpath: /home/andsens/converted
archivepath: /home/andsens/archive
outprefix: sparekassen-euro
factor: 7.45
```

All settings except `factor` are mandatory.
The above formula looks for converted files in `/home/andsens/converted/sparekassen-euro-[daterange]`
and removes transactions from the inputfiles that already exist in those converted
files.
All amounts are multiplied by 7.45 (EUR -> DKK).
Once converted from "sparekassen" format to "ynab" format,
the transactions are written to `/home/andsens/converted/sparekassen-euro-[daterange]`,
while the original file is archived at `/home/andsens/archive/sparekassen-euro-[daterange]`.

The `daterange` corresponds to the dates of the latest and earliest transaction
(in that order, so that newest exports are sorted last).

## Supported formats

- DanskeBank (key: danskebank)
- Sparekassen (key: sparekassen)
- Lån & Spar (key: laanspar)
- Nordnet (key: nordnet)
- HypoVereinsbank (key: hypovereinsbank)
- SaxoTraderGo Account Statement (key: saxotradergo)

