I would like to create a script which is triggered by an email filter which, when run, creates two transactions in GnuCash. I see that GnuCash has Python bindings but the documentation is sparse at best... a better term would be "nonexistent".
Is it possible to write a script which will create transactions in GnuCash? If so, what would the very basic code look like? I just need a starting point; once I have that I can script this fairly well myself.
Here is an alternative solution using piecash (https://github.com/sdementen/piecash, version 0.10.1), a modern python library to work with gnucash books (disclaimer: I am the author)