Skip to main content

Beancount importer for Rabobank CSV exports

Project description

Beancount Rabobank CSV Importer

beancount-rabobank provides an importer for converting CSV exports of Rabobank (Netherlands) account summaries to the Beancount format.

Installation

$ pip install beancount-rabobank

Usage

If you're not familiar with how to import external data into Beancount, please read this guide first.

Adjust your config file to include the provided rabobank.Importer class. A sample configuration might look like the following:

from beancount_rabobank import rabobank

CONFIG = [
    # ...
    rabobank.Importer("EUR", "Assets:Liquid:Rabobank:Checkings")
    # ...
]

Once this is in place, you should be able to run bean-extract on the command line to extract the transactions and pipe all of them into your Beancount file. It should also work in fava using the same configuration.

$ bean-extract /path/to/config.py transaction.csv >> you.beancount

This importer works with smart-importer which will auto suggest postings based on machine learning, which is lovely. In this case a config can look like this:

from smart_importer import apply_hooks, PredictPostings
from beancount_rabobank import rabobank

CONFIG = [
    # ...
    apply_hooks(rabobank.Importer(
        "EUR", "Assets:Liquid:Rabobank:Checkings"), [PredictPostings()])
    # ...
]

Contributing

Contributions are most welcome!

Please make sure you have Python 3.9+ and Poetry installed.

  1. Clone the repository
  2. If you want to develop using VSCode run the following command: poetry config virtualenvs.in-project true
  3. Install the packages required for development: poetry install
  4. 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-rabobank-0.4.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

beancount_rabobank-0.4.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file beancount-rabobank-0.4.0.tar.gz.

File metadata

  • Download URL: beancount-rabobank-0.4.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0

File hashes

Hashes for beancount-rabobank-0.4.0.tar.gz
Algorithm Hash digest
SHA256 de5b274b4abf018ac19bf1be1057bd5caf74d138237796d347027612326cf4ca
MD5 bcc9be94bab50d9ba0e9b1f8cc360453
BLAKE2b-256 ada8a384b149edaba2a96e9180107b8ed66b3b48d8d9c67f64845d47621d55f4

See more details on using hashes here.

File details

Details for the file beancount_rabobank-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beancount_rabobank-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd55220ae51d3b7b0cf0149c44b292fb207301a7204d0cb7240390925935094
MD5 39a095fb5c3da1a31f0f9b4559d211e5
BLAKE2b-256 7d40a6cc5e1704e67a6b4043a65b37e6d7219476372de21ac42573d86f601b9a

See more details on using hashes here.

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