spacepaste

  1.  
  2. #!/usr/bin/env python3
  3. """Example import configuration."""
  4. # Insert our custom importers path here.
  5. # (In practice you might just change your PYTHONPATH environment.)
  6. import sys
  7. from os import path
  8. sys.path.insert(0, path.join(path.dirname(__file__)))
  9. from importers import suncoast_g
  10. #from importers import acme_pdf
  11. from beancount.ingest import extract
  12. #from beancount.ingest.importers import ofx
  13. # Setting this variable provides a list of importer instances.
  14. #
  15. # Removed the following from below to replace with my own, saved for reference
  16. #
  17. # utrade.Importer("USD",
  18. # "Assets:US:UTrade",
  19. # "Assets:US:UTrade:Cash",
  20. # "Income:US:UTrade:{}:Dividend",
  21. # "Income:US:UTrade:{}:Gains",
  22. # "Expenses:Financial:Fees",
  23. # "Assets:US:BofA:Checking"),
  24. #
  25. # ofx.Importer("379700001111222",
  26. # "Liabilities:US:CreditCard",
  27. # "bofa"),
  28. #
  29. # acme_pdf.Importer("Assets:US:AcmeBank"),
  30. #
  31. CONFIG = [
  32. suncoast_g.Importer(config = {'[DATE]': 'Posted Date', '[TXN_DATE]': 'Transaction Date','[NARRATION1]': 'Description','[CREDIT]': 'Deposit','[DEBIT]': 'Withdrawal','[BALANCE]': 'Balance'},
  33. account = "Assets:Suncoast:Checking-G",
  34. currency = "USD",
  35. regexps = ""),
  36. ]
  37. # Override the header on extracted text (if desired).
  38. extract.HEADER = ';; -*- mode: org; mode: beancount; coding: utf-8; -*-\n'
  39.