python interface - access to price database

Mike Evans mikee at saxicola.idps.co.uk
Sat Dec 4 05:47:57 EST 2010


On Friday December 3 2010 17:55:49 Mark Jenkins wrote:
> >  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 must admit that after a I posted that I looked at the commodity functions a 
little harder and didn't find a way to update and query prices, so I don't 
think it's in there.


> 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
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



-- 
GPG Key: 1024D/050895C2
Keyserver: http://pgp.mit.edu/          
Search String: 0x050895C2


More information about the gnucash-devel mailing list