On 07/07/24 14:06, Stefano Zacchiroli wrote:
On Tue, Jun 18, 2024 at 11:57:21AM +0200, Daniele Nicolodi wrote:
The best documentation there is for beangulp is the example included in the
repository https://github.com/beancount/beangulp/tree/master/examples and
the docstrings in the code.

In a nutshell, to upgrade from beancount.ingest to beangulp, it shoul be
sufficient to modify all Python imports from the beancount.ingest namespace
to the beangulp namespace and to turn the configuration file that was used
to be passed to bean-extract into a self-standing script as demonstrated
here https://github.com/beancount/beangulp/blob/master/examples/import.py
Then, calling such script with a '--help' argument should be enough to
understand how to use it.

Thanks a lot for the above indications, which got me started.

I got stuck on a type error though, which I'm mentioning here in case it
helps other migrating and/or you want to change something about it:

I think I know what is going wrong! You need to pass class instances, not the class themselves to beangulp.Ingest(). This would explain the errors you see. Maybe I should add an explicit check for this and report a friendlier error.

Cheers,
Dan

--
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/2e840109-0072-46a4-8e3a-1d4734ade4f3%40grinta.net.

Reply via email to