On Wednesday, October 19, 2022 at 4:15:52 AM UTC-7 [email protected] wrote: > On Wed, Oct 19, 2022, 03:38 Red S <[email protected]> wrote: > >> I use one file per real-world account >> <https://reds-rants.netlify.app/personal-finance/structuring-your-source-tree/>, >> >> which looks like: >> beancount/ >> main.bc # includes the other files >> accounts/ >> Assets.Banks.ABCDBank.Checking.bc >> Assets.Investments.Taxable.BTrade.bc >> Liabilities.Credit-Cards.Blue-Mastercard-0123.bc >> >> I use this patch >> <https://gist.github.com/redstreet/78d2c01bc440358d8b2dfe97b6b0e38c> to >> extract.py in beancount to have my importers output to multiple files. >> >> From this mailing list, I gather several users use organizations that >> involve multiple files, split in different ways. So I'm wondering whether >> custom importer output is something beangulp would consider supporting. >> Happy to think about a patch for this if so. >> > > I like the idea, see other email, especially if we think of this as a new > stage that can insert transactions in existing files. These ideas are > intertwined. Ideally by default the current behavior would be the same. > Sure. > This would get useful indeed. Maybe we should support an importer > returning a Dict[str, List[Transaction]] or adding metadata with the > intended "file group", and a separate stage that writes out files (or > better: inserts the transaction group before unique tags from a set of > Beancount files). > Now that there are three independent ideas in the previous paragraph: > - file groups so that an importer can return more than one list of files > - routing these (or just the output of each importer) to multiple locations > - automatic insertion of imported transactions in a specific place in a > file > >> Hello Martin, Great, thanks for the ideas. I'll put it on my list and get around to it when time opens up.
Meanwhile, beangulp has several major blockers for me, all of which seem like regressions from the former beancount.ingest. See my other threads from this week: - dedupe is broken <https://github.com/beancount/beangulp/issues/93> when specifying multiple input files. PR is here but not yet merged <https://github.com/beancount/beangulp/pull/64> - multiple importers on the same file <https://groups.google.com/g/beancount/c/G-GhFeBLnO4/m/AKuLgYDPAQAJ> not supported - PyPI releases <https://groups.google.com/g/beancount/c/G-GhFeBLnO4/m/AKuLgYDPAQAJ> not available, meaning I can't move beancount_reds_importers <https://github.com/redstreet/beancount_reds_importers> to beangulp, which I'd like to do Any idea if there are plans to address the above? Thanks again! -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/341e3b92-fe73-4d84-b3f9-b7a4a09aba02n%40googlegroups.com.
