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.
- Clone the repository
- If you want to develop using VSCode run the following command:
poetry config virtualenvs.in-project true
- Install the packages required for development:
poetry install
- 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
Built Distribution
Hashes for beancount_rabobank-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b69b59e5b24d903a5b2be000f4959b0b4c8f1a39f906234312b5a5a9f1a83fc |
|
MD5 | 1f3761175d1daeb4a4dbfef17823c708 |
|
BLAKE2b-256 | 07125cc7db26a09685364a0d2d19818ed16c327a4fc8c5b2348bb388013698d2 |