rustledger-importer
Import framework for rustledger - extract transactions from bank files.
Overview
This crate provides infrastructure for extracting Beancount transactions from bank statements, credit card statements, and other financial documents. It follows the design of Python beancount's bean-extract.
Supported Formats
| Format | Description |
|---|---|
| CSV | Configurable CSV importer with column mapping |
| OFX/QFX | Open Financial Exchange format |
Example
use ;
use Path;
// Create a CSV importer configuration
let config = csv
.account
.currency
.date_column
.narration_column
.amount_column
.build;
// Extract transactions from a file
let result = extract_from_file?;
for directive in result.directives
Key Types
| Type | Description |
|---|---|
Importer |
Trait for file importers |
ImporterConfig |
Builder for configuring CSV imports |
ImportResult |
Result containing directives and warnings |
ImporterRegistry |
Registry of available importers |
OfxImporter |
OFX/QFX file importer |
Importer Trait
Implement the Importer trait to add support for new file formats:
use ;
use Path;
use Result;
;
License
GPL-3.0