Skip to main content

Beancount Importer for ING (DE) CSV exports

Project description

Beancount ING Importer

image

image

image

image

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.

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. The beangulp examples suggest using a Python script based on beangulp.Ingest. Here's an example of how that might work:

Add an import.py script in your project root with the following contents:

from beancount_ing import ECImporter
from beangulp import Ingest

importers = (
    ECImporter(
        IBAN_NUMBER,
        "Assets:ING:EC",
        "Erika Mustermann",
        file_encoding="ISO-8859-1",
    ),
)

if __name__ == "__main__":
    ingest = Ingest(importer)
    ingest()

... and run it directly using python import.py extract.

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.9+ and Poetry installed.

  1. Clone the repository: git clone https://github.com/siddhantgoel/beancount-ing
  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 pytest tests/.

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_ing-1.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beancount_ing-1.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file beancount_ing-1.1.0.tar.gz.

File metadata

  • Download URL: beancount_ing-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for beancount_ing-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b1a35ffbbc53ec5e089ce7368250ae308e6c65473d0f4d5fd774982b8549c901
MD5 aa3ce5ce33e82f88e23c86b2dcfad0ec
BLAKE2b-256 16fc575ab9d1623d87cb62ec5fe5a7652885b96c02050d9ebc57c64f67a23bed

See more details on using hashes here.

File details

Details for the file beancount_ing-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: beancount_ing-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for beancount_ing-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45abd541ba058b12eac7b9e3aa808ee1ca39b83fb7abb9c9c2d5e56e73fa50f9
MD5 e8321cf4bef50700d521a8a7305f184b
BLAKE2b-256 cf1be8b83d1ad4db154df00c71fba90aec7070a22a7351db2be423ec4243089f

See more details on using hashes here.

Supported by

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