Out of curiosity: I’m sure it’s just me, but I don’t understand what about smart_importer is not working with beangulp? smart_importer.apply_hooks is what I was using to apply smart_importer.PredictPostings, and that works equally well with beangulp as it did with v2’s ingest. <scratching head>??
Hi,
New version of smart_importer has now this functionality out of the box.
from your_custom_importer import MyBankImporter from smart_importer import PredictPayees, PredictPostings CONFIG = [ MyBankImporter('whatever', 'config', 'is', 'needed'), ] HOOKS = [ PredictPostings().hook, PredictPayees().hook ]
Besides the implementation as a standard hook, there is also a new (hopefully much simpler and clearer) way to just wrap single importers.
from your_custom_importer import MyBankImporter from smart_importer import PredictPayees, PredictPostings CONFIG = [ PredictPostings().wrap( PredictPayees().wrap( MyBankImporter('whatever', 'config', 'is', 'needed') ) ), ] HOOKS = [ ]
See https://github.com/beancount/smart_importer/ for details
If you're using smart_importer together with fava, please make
sure to upgrade to the latest release >= v1.30.3 (there was a
change required for fava to run the beangulp hooks which have more
arguments).
Regards,
Patrick
--
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 beancount+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/beancount/BAD95D51-D9B2-4E48-9AE4-A1B032B81FCB%40tario.org.