Skip to main content

Crate kontochronik

Crate kontochronik 

Source

Structs§

ArchiveRecord
One archived booking (one line in the archive file).
Fingerprint
Content-derived identity of a ledger entry.
FingerprintInput
The entry fields a Fingerprint is derived from.
Iban
A validated IBAN
ImportSummary
Outcome of one import run.
ParseIbanError
The string is not a valid IBAN.
VerifySummary
Outcome of verify_archive.

Enums§

GapPolicy
Whether an import may leave a provable gap in the archive (see import).
ParseFingerprintError
The string is not the hex form of a Fingerprint.

Functions§

import
Imports a file into the archive at archive_path, creating the archive if it doesn’t exist yet. parse decodes the raw bytes of the file into archive records (e.g. parse_gls). Entries whose fingerprint is already archived are skipped, so overlapping export date ranges are safe.
parse_gls
Parses the CSV export of GLS Bank online banking into archive records.
parse_sparkasse
Parses a CSV export of the Sparkasse / Kreissparkasse online banking into archive records. The export variant (CSV-CAMT with or without the “Kategorie” column, e.g. CAMT-52 V8, or CSV-MT940) is detected by its header line.
read_archive
Reads all records of an archive file. The file must be UTF-8.
verify_archive
Verifies the archive at archive_path without modifying it: every stored fingerprint must match its entry’s content, the archive must hold a single account and currency with amounts representable in two decimal places, and the day-by-day balance chain must be gapless. Entries without a fingerprint are legal and only counted.