/beancount-dkb

Beancount Importers for DKB CSV Exports

Primary LanguagePythonMIT LicenseMIT

Beancount DKB Importer

https://travis-ci.org/siddhantgoel/beancount-dkb.svg?branch=master

beancount-dkb provides an Importer for converting CSV exports of DKB (Deutsche Kredit Bank) account summaries to the Beancount format.

Installation

$ pip install beancount-dkb

Usage

from beancount_dkb import ECImporter, CreditImporter

CONFIG = [
    ECImporter(
        IBAN_NUMBER, 'Assets:DKB:EC', currency='EUR',
        numeric_locale='de_DE.UTF-8', file_encoding='utf-8'
    ),

    CreditImporter(
        CARD_NUMBER, 'Assets:DKB:Credit', currency='EUR',
        numeric_locale='de_DE.UTF-8', file_encoding='utf-8'
    )
]

FAQ

ERROR:root:Importer beancount_dkb.ec.ECImporter.identify() raised an unexpected error: 'utf-8' codec can't decode byte 0xf6 in position 17: invalid start byte

Change the file_encoding parameter. It seems like the CSV exports are ISO-8859-1 encoded, but utf-8 seems like a useful default.