Re: Python bindings: patch, documentation, examples

2014-05-09 Thread Marc Shapiro
On 05/09/2014 06:37 PM, David Osguthorpe wrote: On Thu, May 08, 2014 at 11:47:34PM -0700, mshapiro wrote: David Osguthorpe wrote I have a very hacky implementation in gnucash to call python from guile and return results to guile - I found existing libraries to do both (no updates to gnucash req

Re: Python bindings: patch, documentation, examples

2014-05-09 Thread David Osguthorpe
On Thu, May 08, 2014 at 11:47:34PM -0700, mshapiro wrote: > David Osguthorpe wrote > > I have a very hacky implementation in gnucash to call python from guile > > and > > return results to guile - I found existing libraries to do both > > (no updates to gnucash required - just a user prototype.scm

Re: Python bindings: patch, documentation, examples

2014-05-08 Thread mshapiro
e to do more forecasting than the standard reports provide. Marc -- View this message in context: http://gnucash.1415818.n4.nabble.com/Python-bindings-patch-documentation-examples-tp4667098p4670696.html Sent from the GnuCash - Dev mailing list archive a

Re: Python bindings: patch, documentation, examples

2014-01-19 Thread Christoph Holtermann
Am 12.01.2014 20:22, schrieb Henning Jacobs: > > Hi, > > I recently discovered the great Python bindings and just updated > http://wiki.gnucash.org/wiki/Python_Bindings to contain pointers to my > scripts. > > Now my questions: > > * GncPrice does not contain a proper __init__, therefore I monkey >

Re: Python bindings: patch, documentation, examples

2014-01-15 Thread Geert Janssens
On Tuesday 14 January 2014 21:53:40 Henning Jacobs wrote: > Hi, > > thanks for all the answers and insights I got from your mails --- what > I got out of it: > > * Sadly no core developer seems to be using the Python bindings :-( Actually I am using the python bindings to synchronize data in gnuc

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread John Ralls
On Jan 14, 2014, at 12:53 PM, Henning Jacobs wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > thanks for all the answers and insights I got from your mails --- what I > got out of it: [SNIP] > * Core C/C++ API will mostly stay stable, so Python bindings will/should > be

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread Henning Jacobs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, thanks for all the answers and insights I got from your mails --- what I got out of it: * Sadly no core developer seems to be using the Python bindings :-( * There are some guys actively using it for their needs. * Python seems to bring compatib

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread David Osguthorpe
> > > > what is the Query interface - is that the libqof functions?? > > > > Is there an example which shows how this is done - I dont remember seeing > > any query functions > > for budgets in gnc-budget.c > > The current interface is QOFQuery. All of the persistent objects in Engine > imple

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread John Ralls
On Jan 14, 2014, at 8:05 AM, David Osguthorpe wrote: > On Mon, Jan 13, 2014 at 03:59:29PM -0800, John Ralls wrote: >> >> Please remember to copy the list on all replies. Use “reply all” or, if your >> mailer supports it, “reply list”. > > sorry - on some lists the list email is first - other

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread Derek Atkins
David Osguthorpe writes: > what is the Query interface - is that the libqof functions?? yes, see qofquery.h > Is there an example which shows how this is done - I dont remember > seeing any query functions > for budgets in gnc-budget.c They wouldn't be there. QofQuery is a generic framework u

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread David Osguthorpe
On Mon, Jan 13, 2014 at 03:59:29PM -0800, John Ralls wrote: > > Please remember to copy the list on all replies. Use “reply all” or, if your > mailer supports it, “reply list”. sorry - on some lists the list email is first - others not - remembering which one is which is a problem > > You sho

Re: Python bindings: patch, documentation, examples

2014-01-14 Thread Derek Atkins
John Ralls writes: > You should use the Query interface to find objects. If there are any > “foo_find_by_bar” functions in the API now, they’ll be ripped out in > the rewrite. In order to get to multiuser we’ll only be instantiating > objects on demand, ideally only to edit unless it turns out to

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread Tom Lofts
Hi Henning, > * Are there any other known/major users of the Python bindings? > * Who is maintaining the Python bindings and is there any roadmap to > improve them? While not a major user of the Python bindings I've contributed a few minor fixes and enhancements so far which are visiable in re

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread John Ralls
On Jan 13, 2014, at 11:14 AM, David Osguthorpe wrote: > On Mon, Jan 13, 2014 at 09:23:17AM -0800, John Ralls wrote: >>> so what should I do with the updates I was proposing to ask you about >>> eg. no functionality to access budgets in current bindings - I have updates >>> for these >>> - one

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread Derek Atkins
David Osguthorpe writes: >> Unfortunately Python isn't a very good built-in scripting language, >> and supporting it on Mac and Windows is a serious PITA. Guile is >> better, except the number of Scheme programmers loose in the world is >> pretty small. For the foreseeable future I'd expect that

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread Geert Janssens
On Monday 13 January 2014 08:39:36 David Osguthorpe wrote: > On Sun, Jan 12, 2014 at 08:14:11PM -0800, John Ralls wrote: > > > * Who is maintaining the Python bindings and is there any roadmap > > > to > > > improve them? > > > > They're maintained enough to keep them compiling by the core team. >

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread John Ralls
On Jan 13, 2014, at 9:03 AM, Geert Janssens wrote: > On Sunday 12 January 2014 20:14:11 John Ralls wrote: > > On Jan 12, 2014, at 11:22 AM, Henning Jacobs wrote: > > > IMHO the Python bindings are a really great way of enhancing the > > > GnuCash functionality without having to code C/C++ (I wo

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread John Ralls
On Jan 13, 2014, at 8:39 AM, David Osguthorpe wrote: > On Sun, Jan 12, 2014 at 08:14:11PM -0800, John Ralls wrote: >> >>> * Who is maintaining the Python bindings and is there any roadmap to >>> improve them? >> >> They're maintained enough to keep them compiling by the core team. They're >>

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread Geert Janssens
On Sunday 12 January 2014 20:14:11 John Ralls wrote: > On Jan 12, 2014, at 11:22 AM, Henning Jacobs wrote: > > IMHO the Python bindings are a really great way of enhancing the > > GnuCash functionality without having to code C/C++ (I would not be > > very productive with it...) > > Unfortunately

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread Geert Janssens
On Monday 13 January 2014 08:16:17 David Osguthorpe wrote: > I am using the python bindings - in fact was just going to see about > getting some patches to update the bindings. > > Just updated to 2.6.0 - looks as though some functions that used to > exist no longer exist in the Account class so n

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread David Osguthorpe
On Sun, Jan 12, 2014 at 08:14:11PM -0800, John Ralls wrote: > > > * Who is maintaining the Python bindings and is there any roadmap to > > improve them? > > They're maintained enough to keep them compiling by the core team. They're not > really part of our development plan, they're mostly just th

Re: Python bindings: patch, documentation, examples

2014-01-13 Thread David Osguthorpe
I am using the python bindings - in fact was just going to see about getting some patches to update the bindings. Just updated to 2.6.0 - looks as though some functions that used to exist no longer exist in the Account class so need to be removed from gnucash_business.py Ive noticed that the pyth

Re: Python bindings: patch, documentation, examples

2014-01-12 Thread John Ralls
On Jan 12, 2014, at 11:22 AM, Henning Jacobs wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I recently discovered the great Python bindings and just updated > http://wiki.gnucash.org/wiki/Python_Bindings to contain pointers to my > scripts. > > Now my questions: > >

Python bindings: patch, documentation, examples

2014-01-12 Thread Henning Jacobs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I recently discovered the great Python bindings and just updated http://wiki.gnucash.org/wiki/Python_Bindings to contain pointers to my scripts. Now my questions: * GncPrice does not contain a proper __init__, therefore I monkey patched it: htt