Hi Justus,

A few hours ago i tried using the 
https://github.com/beancount/smart_importer with my beangulp based 
importer( 
https://github.com/prabusw/beancount-importers-india/blob/master/prabu/import_prabu.py)
 
to handle 1000+ postings from a bank account and i could not get it 
working. 

I come here to search and find your posting and 
https://github.com/hoostus/beangulp-hooks works perfectly. 

I just made two changes to the above import_prabu.py file as shown below 
and it works great.
+ from hoostus.beangulp.hooks import predict_posting
-hooks = [process_extracted_entries,]
+hooks = [predict_posting.simple_hook]

Thank you so much for creating and sharing here in the mailing list. Hope 
these changes get merged to https://github.com/beancount/smart_importer so 
that it supports beangulp. I'm still finding it difficult to understand the 
changes between v2 and v3 as i don't have programming background. 

Regards,
Prabu

On Thursday, 6 March 2025 at 12:39:11 UTC+5:30 just...@gmail.com wrote:

I searched previous posts but couldn't find anyone that had contributed a 
beangulp hook that mimics the "predict postings" thing from legacy 
smart_importer.

This took me way longer than expected since I have no idea what I'm doing 
but it's been working for me for a few days.

https://github.com/hoostus/beangulp-hooks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/f8e6c3a7-c611-4b61-9f40-07a5a78024b1n%40googlegroups.com.

Reply via email to