python interface - access to price database

Mark Jenkins mark at parit.ca
Fri Dec 3 12:55:49 EST 2010


>  that there is no python interface to the price database.
> Are there plans to include these functions? 

Not planning to add anything for this right now, as I'm my use of the
python bindings is almost entirely the insertion of new transactions and
splits on basic accounts in a single currency.


Mike E wrote:
> Documentation appears to be a bit thin however.

The underlying GnuCash C header files have a lot to say.

This is worth referencing again:
https://lists.gnucash.org/pipermail/gnucash-devel/2008-July/023431.html

As Mike points out, its entirely possible that the price stuff is
already accessible through the commodity database. I'd suggest finding
where the price stuff is in the C api and determining if the headers
from it are already being wrapped in the python binding swig (.i) files.
If not, it may just be a matter of adding one more include statement to
make it accessible via the C style api (e.g. from gnucash.gnucash_core_c
import price_lookup_blah)


Mark


More information about the gnucash-devel mailing list