ledger_cli 0.2.3 copy "ledger_cli: ^0.2.3" to clipboard
ledger_cli: ^0.2.3 copied to clipboard

Parse ledger-cli ledger files

Parse ledger-cli ledger files.

This is a work in progress.

Usage #

The simplest way to parse a ledger file is to pass it to LedgerLoader, like so:

final source = LedgerSource.forFile('/path/to/ledger/file');
final ledger = await ledgerFileLoader.load(source, onApplyFailure: (edit, exc, stackTrace) {
  print("ERROR: could not apply $edit: $exc\n$stackTrace");
});
print("Found a ledger with entries: ${ledger.entries} and accounts: ${ledger.accountManager.accounts.values}");

Currently only basic parsing of a single file is supported, with simple queries.

See also ledger_cli_flutter.

1
likes
120
points
59
downloads

Publisher

verified publisherswiftllama.net

Weekly Downloads

Parse ledger-cli ledger files

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

csv, intl, petitparser

More

Packages that depend on ledger_cli