biweeklybudget.backfill_ofx module

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

Bases: object

Class to backfill OFX in database from files on disk.

_do_account_dir(acct_id, path)[source]

Handle all OFX statements in a per-account directory.

Parameters:
  • acct_id (int) – account database ID
  • path (str) – absolute path to per-account directory
_do_one_file(acct_id, path)[source]

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

Parameters:
  • acct_id (int) – Account ID number
  • path (str) – absolute path to OFX/QFX file
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.