Skip to main content

Beancount Importer for DKB CSV exports

Project description

https://github.com/siddhantgoel/beancount-dkb/workflows/beancount-dkb/badge.svg https://img.shields.io/pypi/v/beancount-dkb.svg https://img.shields.io/pypi/pyversions/beancount-dkb.svg https://img.shields.io/badge/code%20style-black-000000.svg

beancount-dkb provides an Importer for converting CSV exports of DKB (Deutsche Kreditbank) 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

IBAN_NUMBER = 'DE99 9999 9999 9999 9999 99' # your real IBAN number

CARD_NUMBER = '9999 9999 9999 9999'         # your real Credit Card number

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

    CreditImporter(
        CARD_NUMBER,
        'Assets:DKB:Credit',
        currency='EUR',
        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.5+ and Poetry installed.

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

  2. Install the packages required for development - poetry install

  3. That’s basically it. You should now be able to run the test suite - poetry run 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.8.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

beancount_dkb-0.8.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file beancount-dkb-0.8.3.tar.gz.

File metadata

  • Download URL: beancount-dkb-0.8.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.2 CPython/3.8.5 Linux/4.19.0-13-amd64

File hashes

Hashes for beancount-dkb-0.8.3.tar.gz
Algorithm Hash digest
SHA256 307368cd51df65b7775b2f26047e0ba56195d26debdcff04cd2d69dc5aa73095
MD5 9b529b781264d119f986d35f6754e53c
BLAKE2b-256 121a48130f30caa01d6127bb6c6761c08e39de709577cb54ae2de2604ab592b5

See more details on using hashes here.

File details

Details for the file beancount_dkb-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: beancount_dkb-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.2 CPython/3.8.5 Linux/4.19.0-13-amd64

File hashes

Hashes for beancount_dkb-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbe9412807e0d9d97f88c11d65aad2aa905629ae61486029fb26d371069189e
MD5 be3e709a53152d25ec881524e62f36d0
BLAKE2b-256 45aa5ea9883513b519b652bd2a852c78fe33246d3509499aeb2a91a56443c25d

See more details on using hashes here.

Supported by

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