Skip to main content

Beancount Importer for DKB CSV exports

Project description

https://img.shields.io/pypi/v/beancount-dkb.svg https://travis-ci.org/siddhantgoel/beancount-dkb.svg?branch=stable

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

In case you prefer installing from the Github repository, please note that master is the development branch so stable is what you should be installing from.

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.

Contributing

Contributions are most welcome!

Please make sure you have Python 3 and pipenv installed.

  1. Git clone the repository - git clone https://github.com/siddhantgoel/beancount-dkb

  2. Install the packages required for development - pipenv install --dev

  3. That’s basically it. You should now be able to run the test suite - py.test.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount-dkb-0.6.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

beancount_dkb-0.6.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page