dkb-to-actual
Convert CSV exports from DKB (Girokonto, Tagesgeld, Kreditkarte) into files that Actual Budget can import, either as CSV or as OFX.
DKB exports are not directly importable: they start with metadata rows, use ; as separator,
German number and date formats (-1.234,56, 10.11.26) and put the payee into different
columns depending on the direction of the payment. dkb-to-actual takes care of that and also
cleans up a few DKB quirks:
- PayPal: the real merchant (
… Ihr Einkauf bei <merchant>) becomes the payee, the noisy purpose text becomes a short note such asPayPal purchase, reference 1054298385875. - Party fields padded with an address (
Example S.a.r.l. Example Street 1) are trimmed. - Pending transactions (
Vorgemerkt) are skipped by default, as they change once booked. - Every transaction gets a stable id derived from the original row. In OFX files it is used as
FITID, which Actual stores asimported_id, so importing overlapping exports does not create duplicates.
Everything runs locally and offline. No data leaves your machine.
Installation
uv tool install dkb-to-actual # or: pipx install dkb-to-actual
# one-off without installing:
uvx dkb-to-actual export.csv
Usage
Download the transactions in DKB banking (Umsätze → Export → CSV), then:
# CSV next to the input: 11-11-2026_Umsatzliste_Girokonto_….actual.csv
dkb-to-actual 11-11-2026_Umsatzliste_Girokonto_DE00….csv
# OFX (recommended for repeated imports, thanks to duplicate detection)
dkb-to-actual -f ofx 11-11-2026_Umsatzliste_Girokonto_DE00….csv
# newest DKB export in a directory, only from a given date on
dkb-to-actual --latest ~/Downloads --since 2026-11-01
# preview on stdout
dkb-to-actual export.csv -o -
| Option | Description |
|---|---|
-f, --format csv|ofx |
Output format (default csv). |
-o, --output PATH |
Output file, - for stdout. Default: <input>.actual.<format>. |
-t, --type auto|giro|credit |
Export type, auto-detected from the header by default. |
--date booking|value |
Use Buchungsdatum/Belegdatum (default) or Wertstellung. |
--since DATE |
Only transactions on/after YYYY-MM-DD, DD.MM.YYYY or DD.MM.YY. |
--latest |
With a directory input: use the newest DD-MM-YYYY_Umsatzliste_*.csv. |
--include-pending |
Also export pending (Vorgemerkt) transactions. |
--no-payee-cleanup |
Keep payee and notes exactly as DKB provides them. |
Importing into Actual
- Open the account in Actual and click Import.
- Pick the generated file.
- OFX: nothing to configure. Actual uses the transaction ids to skip already imported transactions.
- CSV: the columns
Date,Payee,NotesandAmountare mapped automatically. Pick the date formatYYYY MM DDif it is not detected. Actual de-duplicates CSV imports only by fuzzy matching on date, amount and payee.
Supported exports
| Export | Header (excerpt) | Status |
|---|---|---|
| Girokonto / Tagesgeld (new banking) | Buchungsdatum;Wertstellung;Status;Zahlungspflichtige*r;Zahlungsempfänger*in;… |
✅ |
| Kreditkarte (new banking) | Belegdatum;Wertstellung;Status;Beschreibung;Umsatztyp;Betrag (€);… |
✅ |
| Kreditkarte (old banking) | …;Wertstellung;Belegdatum;Beschreibung;Betrag (EUR);… |
✅ |
UTF-8 (with or without BOM) and Windows-1252 encoded files are accepted. If DKB changes the format, please open an issue with an anonymized excerpt of the header and a row.
Privacy
Bank exports contain sensitive data. This repository ignores *.csv and *.ofx outside of
tests/fixtures/, and all fixtures are synthetic. Never attach real exports to issues.
Development
Tooling is managed with mise:
mise install # python, uv, gh, prek
mise run install # uv sync
mise run hooks # git hooks via prek
mise run check # lint + typecheck + tests
mise run fmt # format and auto-fix
Commits follow Conventional Commits. release-please opens release PRs from them, and merging one publishes the package to PyPI via trusted publishing.
License
Metadata
Release files for dkb-to-actual 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dkb_to_actual-0.1.1.tar.gz | 15.6 kB | With provenance | Details for dkb_to_actual-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dkb_to_actual-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dkb_to_actual-0.1.1-py3-none-any.whl |
Total release size: 36.5 kB
Release files / dkb_to_actual-0.1.1.tar.gz
| Download URL | dkb_to_actual-0.1.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f95b11971df4d13a32b2fe8000c6d8e6320ce2d20e7ed19299075648db1f1aa8
|
|
BLAKE2b-256 checksum How to use checksums |
a8efcb3ae6ba1a7541890f253cf320b685c2137f9be392cc15f6e1ba4856cbb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / dkb_to_actual-0.1.1-py3-none-any.whl
| Download URL | dkb_to_actual-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bf6b9c9f0e1ef749b7268200d3a23cd367eb16fa283ac8f10eb3c7b073300f5
|
|
BLAKE2b-256 checksum How to use checksums |
7e1301181373d8b60650bba6f133c0107a6fa2a31ebe4beb64e90513876f5b3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for dkb-to-actual 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dkb_to_actual-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.