Beancount Importer for ING (DE) CSV exports
Project description
Beancount ING Importer
beancount-ing
provides an Importer for converting CSV exports of
ING (Germany) account summaries to the Beancount format.
Installation
$ pip install beancount-ing
In case you prefer installing from the Github repository, please note that
main
is the development branch so stable
is what you should be installing
from.
Note that v1.x will only work with Beancount 3.x, while v0.x will only work with Beancount 2.x, due to incompatibilities between Beancount 3.x and 2.x.
Usage
If you're not familiar with how to import external data into Beancount, please read this guide first.
Beancount 3.x
Beancount 3.x has replaced the config.py
file based workflow in favor of having a
script based workflow, as per the changes documented here. As a result, the importer's
initialization parameters have been shifted to pyproject.toml
.
Add the following to your pyproject.toml
in your project root.
[tool.beancount-ing.ec]
iban = "DE99 9999 9999 9999 9999 99"
account_name = "Assets:ING:EC"
user = "Erika Mustermann"
file_encoding = "ISO-8859-1" # optional
Run beancount-ing-ec
to call the EC importer. The identify
and extract
subcommands
would identify the file and extract transactions for you.
$ beancount-ing-ec extract transaction.csv >> you.beancount
Beancount 2.x
Adjust your config file to include the provided ECImporter
. A sample configuration
might look like the following:
from beancount_ing import ECImporter
CONFIG = [
# ...
ECImporter(
IBAN_NUMBER,
"Assets:ING:EC",
"Erika Mustermann",
file_encoding="ISO-8859-1",
),
# ...
]
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.
$ bean-extract /path/to/config.py transaction.csv >> you.beancount
Contributing
Contributions are most welcome!
Please make sure you have Python 3.8+ and Poetry installed.
- Clone the repository:
git clone https://github.com/siddhantgoel/beancount-ing
- Install the packages required for development:
poetry install
- That's basically it. You should now be able to run the test suite:
poetry run pytest tests/
.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file beancount_ing-1.0.0.tar.gz
.
File metadata
- Download URL: beancount_ing-1.0.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd5cb32dae67574aa90f97333c56e76c3a98087b2596b0bbe130e8bb026e647 |
|
MD5 | 581edc96fbd5eea83293a5f2f7414731 |
|
BLAKE2b-256 | 64f851a47cbf9d58c8b6cb0fff86b6e480b26f55d8f888efe7c05bf101292705 |
File details
Details for the file beancount_ing-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: beancount_ing-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc36ad03ef9766db7552f20a57716b6fd3dd520aee3808e6a239ba11ca6735d |
|
MD5 | e2f523b91e93049d48b51b0391b880ea |
|
BLAKE2b-256 | 9fa2217e5ca5975a5729862f7877cd7ab02e970185171c7fe6d63cb638fd9b2a |