3 ms·
Can you share a link to the docs for the scripting engine? I've seen conflicting information over the years and I'm not sure what the latest really is.
by jrootabega 2y ago
Can you share a link to the docs for the scripting engine? I've seen conflicting information over the years and I'm not sure what the latest really is.
- rad_gruchalski 2y agoDoes this help? https://github.com/Gnucash/gnucash/tree/stable/bindings/python/example_scripts https://github.com/Gnucash/gnucash/tree/stable/bindings/pyth...
- bdjsiqoocwk 2y agoThe other person said GnuCash has a scripting engine. These are just scripts. Not the same thing.
- samus 2y agoThese are examine scripts for a REST API that gives access to internals of GnuCash.
- bdjsiqoocwk 2y agoOh ok. I will have a look, thank you! Does it allow setting values, or just reading?
- rad_gruchalski 2y agoIt seems to be read / write https://github.com/Gnucash/gnucash/blob/stable/bindings/python/example_scripts/simple_book.py#L18 https://github.com/Gnucash/gnucash/blob/stable/bindings/pyth....
- jrootabega 2y agoIt's one piece in one of the puzzles, but it's not really what I'm looking for.
- samus 2y agoInternally, it uses Guile. I'm afraid there might not be a good user interface to edit the Guile source files, but at least Guile is much more pleasant to work with than C and offers way less paper cuts. I think it's mostly used for reports. You might have to create a plugin to expose your own scripts in the UI.
- jrootabega 2y agoYeah, at some point I got the impression that I could use Guile to extend it, but then couldn't find any way to do it as an end user. Not sure if I was just wrong, or out of date.
- kreyenborgi 2y agoI feel like it could do with some tutorials and guides on Guile. I would have liked to be able to do reporting and invoicing with more control through scripts, but last time I looked at it I just gave up due to lack of docs.