report in python, a first version

Sébastien de Menten sdementen at
Mon Nov 14 22:05:18 EST 2016

On Nov 15, 2016 1:27 AM, "John Ralls" <jralls at> wrote:
> > On Nov 14, 2016, at 1:31 PM, Sébastien de Menten <sdementen at>
> >
> > Hello,
> >
> > I have finished a first version of a mechanism to use python for
> > in gnucash.
> > It uses a scheme script to start a python process that does the heavy
> > lifthing.
> >
> > Should you be interested, you can find documentation/instructions here:
> >
> > as well as an example of the simplest report possible
> >
> >
> > Any feedback appreciated.
> Sébastien,
> Did you decide to not use the facility in src/optional/python to start a
Python interpreter inside of GnuCash because you didn't know about it,
because it was easier to do something in Scheme, or because that
interpreter can't interact with the existing (Scheme) report facilities?
> Regards,
> John Ralls

I didn't (and still don't) know a lot about this embedded python
interpreter. Any link pointing to doc by any chance ?
I wanted something that could leverage the "report options" framework (this
is purely in scheme, correct ?), could be hot plugable on gnucash (no
recompilation) and rather generic (the subprocess can be any specific
python intepreter, usually one in a virtualenv,  but this could be adapted
to launch any subprocess ... perl ? node.js ?).
I therefore hacked a way via scheme reusing logic found in the quote
updater to spawn external processes.
If anything can be simplified/better designed, I am in.


More information about the gnucash-devel mailing list