biweeklybudget.backfill_ofx module

class biweeklybudget.backfill_ofx.OfxBackfiller(savedir)[source]

Bases: object

Class to backfill OFX in database from files on disk.

_do_account_dir(acct_id, acct_name, cat_memo, path)[source]

Handle all OFX statements in a per-account directory.

Parameters:
  • acct_id (int) – account database ID
  • acct_name (str) – account name
  • cat_memo (bool) – whether or not to concatenate OFX Memo to Name
  • path (str) – absolute path to per-account directory
_do_one_file(updater, path)[source]

Parse one OFX file and use OFXUpdater to upsert it into the DB.

Parameters:
run()[source]

Main entry point - run the backfill.

biweeklybudget.backfill_ofx.main()[source]

Main entry point - instantiate and run OfxBackfiller.

biweeklybudget.backfill_ofx.parse_args()[source]

Parse command-line arguments.