Actually https://github.com/dpaetzel/buchhaltung could fit your needs. Just found it because I thought that someone must have built this already.
Re:GnuCash Tutorial and Concepts Guide
by cmarschner on Saturday October 21, 2023 @04:16AM
(#37965033)
Ok. But written in Haskell? Why would you write this kind of stuff in anything but python - it’s trivial after all, and it should stay trivial through all layers…
Edit: Missed that his is about ledger-cli, not gnucash. Sorry.