GithubHelp home page GithubHelp logo

aboutandre / dkb2homebank Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hamvocke/dkb2homebank

0.0 1.0 0.0 55 KB

Convert DKB account CSV files to a Homebank compatible CSV format

License: MIT License

Python 100.00%

dkb2homebank's Introduction

dkb2homebank Python application

This script converts CSV account reports from Deutsche Kreditbank (DKB) to a CSV format that can be imported by the personal finance software Homebank.

You can find further instructions on my blog.

How to run the script

The script can either convert a DKB Cash account report or a Visa account report CSV file.

To convert a DKB Cash CSV file simply run:

./dkb2homebank.py --cash yourCashReportFile.csv

To convert a Visa CSV file run:

./dkb2homebank.py --visa yourVisaReportFile.csv

You can also choose an alternative path for your output file, if the standard "cashHomebank.csv" or "visaHomebank.csv" in the working directory doesn't do it for you. Use --output-file or -o for that:

./dkb2homebank.py --cash yourCashReportFile.csv --output-file ~/Documents/Finances/import_to_homebank.csv

Importing into Homebank

Import the converted CSV file into Homebank by going to File -> Import and selecting the output file you got when running your script.

Note: If Homebank tells you that your CSV file is invalid, go to Settings -> Import/Export and make sure that the Delimiter is set to semicolon and try importing again.

Requirements

To run this script, you need Python 3.4 or higher. I've verified that the exported CSV can be imported successfully on Homebank 5.0.0 and above.

Run the tests

I have included a (admittedly very small) set of tests to help a little bit during development. These tests use Python's unittest module and can be executed using:

./dkb2homebankTest.py

You can also test the script manually by using the provided testfiles:

./dkb2homebank.py --cash testfiles/cash.csv

or

./dkb2homebank.py --visa testfiles/visa.csv

dkb2homebank's People

Contributors

ablesius avatar frida-161 avatar hamvocke avatar sercxanto avatar techge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.