Beangulp extract/archive file paths

45 views
Skip to first unread message

John Gauthier

unread,
Nov 13, 2025, 7:42:20 PM (14 days ago) Nov 13
to Beancount
Hello,

When I run my beangulp importers `extract` step, the include the path of the file that generated the entries:

```
**** /home/john/Finances/downloads/statementA.CSV

2025-10-24 * "foo"
  Liabilities:Bar  -14.87 USD
  Expenses:Baz


**** /home/john/Finances/downloads/statementB.CSV

2025-10-14 * "foo"
  Liabilities:Bar  -20.25 USD
  Expenses:Baz
```


However, those filepaths becoming meaningless once I run the importer `archive` step, which renames the files and moves them to my documents folder, e.g. `/home/john/Finances/documents/Liabilities/Bar/2025-10-14.bar.csv`.

I think it would be more useful if the filepaths output by `extract` matched the path that results from `archive`. Currently I'm updating them manually. I am curious, how do others handle this? Would the maintainers of beangulp be open to a PR to implement this, perhaps as an option CLI flag on `extract`?

Thanks,
John

redst...@gmail.com

unread,
Nov 14, 2025, 2:38:51 PM (13 days ago) Nov 14
to Beancount

I personally monkey patch beangulp (search for patch on that page) so it can write out one file per account. I’d apparently removed the line you brought up, and what seems like an emacs related line above it (which should be removed IMHO). But I can see your suggestion being quite helpful, and I’ll add it to my patch.

Anyway, just thought I’d mention the option of monkey patching beangulp for this change.

Reply all
Reply to author
Forward
0 new messages