Swiftpack.co -  Nef10/SwiftBeanCountRogersBankMapper as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift library to convert download Rogers Bank data to the SwiftBeanCount model
.package(url: "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git", from: "v0.0.2")


CI Status Documentation percentage License: MIT Latest version platforms supported: linux | macOS | iOS | watchOS | tvOS SPM compatible

This project is part for SwiftBeanCount, please check out the main documentation here.


This is a small library to convert downloaded data from Wealthsimple (via RogersBankDownloader) to the Beancount format (via SwiftBeanCountModel).

Beancount meta data

The library relies on meta data in your Beancount file to find your accounts. Please add rogers-bank-last-four: "XXXX" with the last four digits of your number to your Credit Card Liability account.


  1. Load your ledger, e.g. via SwiftBeanCountParser
  2. Create an instance of SwiftBeanCountRogersBankMapper using the ledger
  3. Dowload the accounts and activities you want to convert via the RogersBankDownloader
  4. Use mapAccountToBalance and mapActivitiesToTransactions on the mapper to convert the downloaded data

Please also check out the complete documentation here.


The library supports the Swift Package Manger, so simply add a dependency in your Package.swift:

.package(url: "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git", .exact(from: "X.Y.Z")),

Note: as per semantic versioning all versions changes < 1.0.0 can be breaking, so please use .exact for now


Stars: 0
Last commit: 4 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

0.0.2 Statements
4 weeks ago


🚀 Features

  • Upstream: Add function to download statements @swift-dependency-updater (#5)

📈 Enhancements

  • Upstream: Add mail or phone order activity category @swift-dependency-updater (#5)

🐛 Bug Fixes

  • Upstream: Correctly parse if no purchases yet @swift-dependency-updater (#2)

🧰 Maintenance

  • Bump RogersBankDownloader from 0.0.3 to 0.0.4 @swift-dependency-updater (#5)
  • Update version in readme @Nef10 (#3)
  • Bump RogersBankDownloader from 0.0.2 to 0.0.3 @swift-dependency-updater (#2)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics