price.date, transaction.post_date and neutral time

2018-02-11 Thread Sébastien de Menten
When exporting data from SQL backends, I see some inconsistencies in the handling of some date & datetime columns. In the prices table, when adding price via the price editor, I see in the date column a datetime with the UTC of the /MM/DD 00:00:00 of my local timezone (CET). For instance, for

Re: price.date, transaction.post_date and neutral time

2018-02-11 Thread Sébastien de Menten
John Ralls" wrote: > > > > On Feb 11, 2018, at 4:33 AM, Sébastien de Menten > wrote: > > > > When exporting data from SQL backends, I see some inconsistencies in the > > handling of some date & datetime columns. > > > > In the prices table, when

Re: price.date, transaction.post_date and neutral time

2018-02-12 Thread Sébastien de Menten
" wrote: On 11/02/2018 12:33, Sébastien de Menten wrote: > When exporting data from SQL backends, I see some inconsistencies in the > handling of some date & datetime columns. > > In the prices table, when adding price via the price editor, I see in the > date column a dateti

Re: price.date, transaction.post_date and neutral time

2018-02-13 Thread Sébastien de Menten
On Tue, Feb 13, 2018 at 6:32 AM, Wm via gnucash-devel < gnucash-devel@gnucash.org> wrote: > On 12/02/2018 21:00, Sébastien de Menten wrote: > >> When I enter a new price for a given day for a security on the NASDAQ via >> the price editor, it is stored in the date colu

Re: price.date, transaction.post_date and neutral time

2018-02-13 Thread Sébastien de Menten
any extract of price data (direct SQL, XML, piecash, ...) is complex to use. On Feb 13, 2018 15:47, "Wm" wrote: > On 13/02/2018 12:47, Sébastien de Menten wrote: > >> On Tue, Feb 13, 2018 at 6:32 AM, Wm via gnucash-devel < >> gnucash-devel@gnucash.org> wrote

Re: [PATCH] Switch to python 3

2018-03-16 Thread Sébastien de Menten
th" > > Cc: gnucash-devel@gnucash.org > > Subject: Re: [PATCH] Switch to python 3 > > > > For further discussion here, though, particularly for Sébastien de > Menten and Alen Siljak: Is it OK to convert to Python-3 only or should the > bindings support both Python-2.7

Re: [GNC-dev] GNUCASH Test Data

2018-11-11 Thread Sébastien de Menten
Hello Chris, I am definitely interested into such gnucash data set of books/accounts/etc for testing piecash (reports, performance,.. ). With the transition to gnucash 3 coming to maturity, I planned to convert/rework the existing set of sample books ( https://github.com/sdementen/piecash/tree/mas

Re: [GNC-dev] [GNC] ofxtools - a Python OFX library

2019-05-31 Thread Sébastien de Menten
Hello Christopher I am the dev of piecash. Regarding the second resolution of datetime, I think I got it by reverse engineering the SQL database format for gnucash books (you can check by introspecting the DB or the XML). Why do you need this very high resolution? I think most of the datetime elem

python GnuCash interface to SQL backend

2014-11-12 Thread Sébastien de Menten
Hello, After trying multiple times to work with GnuCash from python (via xml, via the python bindings, via sql), I finally had a try to use SQLAlchemy to handle the GnuCash Books saved through the SQL backend (sqlite3 and postgres). I have a release on PyPI the package "pyscash" installable throu

Re: python GnuCash interface to SQL backend

2014-11-13 Thread Sébastien de Menten
On Wednesday, November 12, 2014, John Ralls wrote: > > > On Nov 11, 2014, at 1:10 PM, Sébastien de Menten > wrote: > > > > > > I would be genuinely interested to have more specific documentation on > the > > risks of going the SQL way. > > There

Re: python GnuCash interface to SQL backend

2014-11-13 Thread Sébastien de Menten
On Thursday, November 13, 2014, John Ralls wrote: > > On Nov 12, 2014, at 12:08 PM, Sébastien de Menten > wrote: > > On Wednesday, November 12, 2014, John Ralls > wrote: > >> >> > On Nov 11, 2014, at 1:10 PM, Sébastien de Menten >> wrote: >> >

Re: python GnuCash interface to SQL backend

2014-11-13 Thread Sébastien de Menten
On 2014-11-13 19:25, John Ralls wrote: On Nov 13, 2014, at 9:31 AM, Sébastien de Menten wrote: Indeed, it may be worth to explain what are the goals (and the limits). I have tried to use the official python bindings and had the following issues: - need swig + compilations to make them work

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
First of all, thank you John for taking the time to answer to this thread ! > > If you see GnuCash from the (limited) perspective of an editor for a > Book document (as LibreOffice Writer is an editor for a ODT document), > object persistence is central. And luckily we have both a very clean and

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Fri, Nov 14, 2014 at 3:33 AM, Derek Atkins wrote: > John Ralls writes: > > > What’s your goal here? I don’t think that reimplementing GnuCash in > > Python with GnuCash’s SQL schema is a particularly good approach: It’s > > not exactly the most efficient design. Rather, it’s designed to mirro

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Fri, Nov 14, 2014 at 3:31 AM, Derek Atkins wrote: > Sébastien de Menten writes: > > > Where could I find detailed documentation on the GnuCash engine (and the > > constrains/invariants GnuCash enforces) ? Or would there be some > > code/program to check a GnuCash

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Friday, November 14, 2014, John Ralls wrote: > > On Nov 14, 2014, at 4:28 AM, Sébastien de Menten > wrote: > > > In terms of the implementation itself of the object model, the main things > I see not that clean are: > - KVP vs field representation > - XXX_denom

Re: python GnuCash interface to SQL backend

2014-11-15 Thread Sébastien de Menten
Hello John, I have put at this address https://github.com/sdementen/piecash/blob/master/docs/source/object_model.rst what I understood from the object model of GnuCash (schema/fields/invariants). I have also added some questions regarding the objects for which you may have the answer... (or these

Re: python GnuCash interface to SQL backend

2014-11-16 Thread Sébastien de Menten
On Saturday, November 15, 2014, Christian Stimming wrote: > Dear Sébastien, > > I really try not to be rude, but a little bit it seems to me as if you > don't > accept "no" as an answer here. You asked whether the gnucash developers > support an alternative SQL access layer written in python from

Re: python GnuCash interface to SQL backend

2014-11-17 Thread Sébastien de Menten
On Monday, November 17, 2014, Derek Atkins wrote: > > I think most of our beef against your project is that you're making it > read-write. If it was read-only then nobody here would care. > > Yes indeed. Me first needs are a) to read a GnuCash boom from python and b) to create some new objects (

need for KvpFrame vs "/path/for/key" in key/value store

2014-12-16 Thread Sébastien de Menten
Hello, I was wondering why there was a need for a KvpFrame type when the key was nevertheless holding the full path to the value, for example a Book may have the slot: "options" : a frame holding "options/Accounts" : a frame holding "options/Accounts/Use Trading Accounts" : a boolean

Re: need for KvpFrame vs "/path/for/key" in key/value store

2014-12-16 Thread Sébastien de Menten
representation, one could ponder the use of the KVP Frame object as the name includes the hierarchical relation. On Tue, Dec 16, 2014 at 8:36 PM, Sébastien de Menten wrote: > > Hello, > > I was wondering why there was a need for a KvpFrame type when the key was > nevertheless holding the f

currency linked to a stock

2014-12-17 Thread Sébastien de Menten
Hello, There is no currency explicitly linked to a given stock (is this correct?). As a result, one can attach to a given stock multiple prices in multiple commodities. For instance, YHOO (which is traded in USD) could have a price in CAD if entered manually (in the price editor or through a tran

Re: currency linked to a stock

2014-12-17 Thread Sébastien de Menten
2014, John Ralls wrote: > > > On Dec 17, 2014, at 1:28 PM, Sébastien de Menten > wrote: > > > > Hello, > > > > There is no currency explicitly linked to a given stock (is this > correct?). > > > > As a result, one can attach to a given stock multi

Re: Report wrapper to call python scripts?

2014-12-27 Thread Sébastien de Menten
Just a thought regarding the need for a python distribution for the python binding on Windows/OS X, would it be an option to build a single executable with the gnucash bindings (see http://www.orbitals.com/programs/pyexe.html or http://www.decalage.info/en/python/py2exe) ? This would give a complet

some questions on accounts/commodities

2014-12-29 Thread Sébastien de Menten
hello, I have some questions on gnucash behavior regarding some "limit" changes: - a placeholder account: an account can be converted to a placeholder account even if there are splits related to it. Is it expected behavior ? or should the placeholder flag be selectable only if there are no split i

Re: some questions on accounts/commodities

2014-12-29 Thread Sébastien de Menten
On Mon, Dec 29, 2014 at 6:36 PM, John Ralls wrote: > > > On Dec 29, 2014, at 7:17 AM, Sébastien de Menten > wrote: > > > > hello, > > > > I have some questions on gnucash behavior regarding some "limit" changes: > > - a placeholder a

Re: Report wrapper to call python scripts?

2015-01-01 Thread Sébastien de Menten
piecash ;-) ) sebastien On Sun, Dec 28, 2014 at 3:59 PM, John Ralls wrote: > > > On Dec 27, 2014, at 11:54 PM, Sébastien de Menten > wrote: > > > > Just a thought regarding the need for a python distribution for the > python > > binding on Windows/OS X, would

understanding scheduled transactions sql table

2015-01-03 Thread Sébastien de Menten
For each scheduled transaction, I can see that a "BANK" account is created as a child of the root_template, with as name the guid of the scheduled transaction. This account does not have a lot of valuable information (field or slots) at first sight. What would be the role of this account ? kr seb

CRIT log when reading file with new name for the first time

2015-01-04 Thread Sébastien de Menten
I noticed in the log /tmp/gnucash.trace that whenever I rename a gnucash sqlite file and I open it in gnucash, Gnucash leaves a CRITical warning in it: * 21:02:56 CRIT g_key_file_free: assertion 'key_file != NULL' failed * 21:02:56 INFO [gnc_state_get_current] No pre-existing state found, crea

FOSDEM

2015-01-25 Thread Sébastien de Menten
Anyone attending FOSDEM next weekend ? ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

announcement beta release of piecash, an alternative python interface to GnuCash

2015-02-07 Thread Sébastien de Menten
Seen the recent emails on the gnucash mailing lists about several topics for which the project I am working on could be deemed interesting, I announce you that version 0.62 of piecash, an alternative python interface to GnuCash, is released. I made two simple screencasts to show its use (to be wat

two children account may have the same name

2015-03-14 Thread Sébastien de Menten
There is no constraint in gnucash to avoid creating two top-level accounts with the same name while there is such a constraint for two sub-accounts. Should the first be allowed ? Is there some reason to allow this ? regards sebastien ___ gnucash-devel mai

Fwd: Guile gnucash modules documentation

2016-11-06 Thread Sébastien de Menten
Cross posting to gnucash-devel as probably more a dev question. Essentially: is there any way to get some documentation (even just the list of modules with symbols exported) on the guile gnucash bindings ? Sébastien -- Forwarded message -- From: "Sébastien de Menten" D

report in python, a first version

2016-11-14 Thread Sébastien de Menten
Hello, I have finished a first version of a mechanism to use python for reporting 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: http://gnucash-utilities.readthedocs.io/en/master/d

Re: report in python, a first version

2016-11-14 Thread Sébastien de Menten
On Nov 15, 2016 1:27 AM, "John Ralls" wrote: > > > > On Nov 14, 2016, at 1:31 PM, Sébastien de Menten wrote: > > > > Hello, > > > > I have finished a first version of a mechanism to use python for reporting > > in gnucash. > > It uses a s

Re: report in python, a first version

2016-11-14 Thread Sébastien de Menten
On Tue, Nov 15, 2016 at 5:37 AM, John Ralls wrote: > > On Nov 14, 2016, at 7:05 PM, Sébastien de Menten > wrote: > > On Nov 15, 2016 1:27 AM, "John Ralls" wrote: > > > > > > > On Nov 14, 2016, at 1:31 PM, Sébastien de Menten > wrote: >

Re: report in python, a first version

2016-11-15 Thread Sébastien de Menten
On Tue, Nov 15, 2016 at 4:17 PM, John Ralls wrote: > > On Nov 14, 2016, at 10:43 PM, Sébastien de Menten > wrote: > > > On Tue, Nov 15, 2016 at 5:37 AM, John Ralls wrote: > >> >> On Nov 14, 2016, at 7:05 PM, Sébastien de Menten >> wrote: >> &g

Re: report in python, a first version

2016-11-15 Thread Sébastien de Menten
On Tue, Nov 15, 2016 at 6:41 PM, John Ralls wrote: > > > On Nov 15, 2016, at 9:24 AM, Sébastien de Menten > wrote: > > > > On Tue, Nov 15, 2016 at 4:17 PM, John Ralls wrote: > > > > Sébastien, > > > > That's a bit more "external&quo

Re: report in python, a first version

2016-11-16 Thread Sébastien de Menten
On Nov 16, 2016 12:30 AM, "John Ralls" wrote: > > > > On Nov 15, 2016, at 12:58 PM, Sébastien de Menten wrote: > > > > > > On Tue, Nov 15, 2016 at 6:41 PM, John Ralls wrote: > > > > > On Nov 15, 2016, at 9:24 AM, Sébastien de Menten w

Re: display book path in report

2017-02-16 Thread Sébastien de Menten
Is it complex to add it ? On Feb 16, 2017 16:11, "Derek Atkins" wrote: > OOPS. You are correct. > There is no scheme binding for this API. > Sorry. > > -derek > > Sébastien de Menten writes: > > > I went to look for the file you mentioned and I see

Re: display book path in report

2017-02-17 Thread Sébastien de Menten
swig. On Fri, Feb 17, 2017 at 4:56 PM, Derek Atkins wrote: > Hard to say. I don't know what other dependencies would need to be brought > in. > You'd certainly need to rebuild GnuCash! > > -derek > > Sébastien de Menten writes: > > > Is it complex to a

Re: display book path in report

2017-02-17 Thread Sébastien de Menten
all you need to do is > find (or add) an API to get the current session from the current book. > > -derek > > On Fri, February 17, 2017 4:01 pm, Sébastien de Menten wrote: > > I can access a function named qof-session-get-url which expects a > session. > > However, to g

Re: display book path in report

2017-02-18 Thread Sébastien de Menten
c_get_current_book(). > > -derek > > On Fri, February 17, 2017 4:23 pm, Sébastien de Menten wrote: > > If only I knew how to do this ! I can't find the proper documentation ... > > help much appreciated ! > > > > On Feb 17, 2017 22:14, "Derek Atkins" wr

Github projects related to gnucash

2017-10-11 Thread Sébastien de Menten
Hello, Just to let you know, I have updated the list of github projects with gnucash in their description: http://piecash.readthedocs.io/en/latest/doc/github_links.html Python is the front runner language in terms of # projects followed at some distance by perl and Java. Kind regards, Sébastien

update of guile version in windows build

2017-11-14 Thread Sébastien de Menten
hello, What version of guile is packaged with the windows build of gnucash ? I have the impression it is the 1.8.8 released in 2010 but am not sure... if so, would it be possible to upgrade it to 2.0 or 2.2 ? sebastien ___ gnucash-devel mailing list gnu

Re: update of guile version in windows build

2017-11-15 Thread Sébastien de Menten
Great! I have installed gnucash 2.7 on windows (downloaded the binaries) but can't make it work. Anyone using the 2.7 binaries for windows successfully? On Nov 14, 2017 11:00 AM, "Geert Janssens" wrote: Op dinsdag 14 november 2017 09:01:01 CET schreef Sébastien de Menten: &g

gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread Sébastien de Menten
Not sure if it is a bug with gnucash 2.7.1, but I can't use the gnc-build-dotgnucash-path in the config.user as I get an unbound variable. any clue? is this the right list for questions re gnucash 2.7.1 or should I use the gnucash-user ML ? ___ gnucash-de

Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread Sébastien de Menten
Ok, thanks for the clarification. On Nov 19, 2017 16:05, "John Ralls" wrote: > > > > On Nov 19, 2017, at 6:20 AM, Sébastien de Menten > wrote: > > > > Not sure if it is a bug with gnucash 2.7.1, but I can't use > > the gnc-build-dotgnu

Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-20 Thread Sébastien de Menten
Indeed. But in gnucash guile world, how will scm scripts using the old API still work tomorrow ? Or do they need a migration/versioning per gnucash version ? On Nov 20, 2017 06:04, "John Ralls" wrote: > > > On Nov 19, 2017, at 8:28 PM, Sébastien de Menten > wrote: &

Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-20 Thread Sébastien de Menten
yes, the same can be done in scheme but the question is "will scheme reports/scripts need to be rewritten for Gnucash 2.7/2.8?" (i.e. no back compatibility guaranteed) On Mon, Nov 20, 2017 at 5:50 PM, John Ralls wrote: > > > On Nov 20, 2017, at 1:37 AM, Sébastien de Menten

Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-21 Thread Sébastien de Menten
schreef Geert Janssens: > > Op maandag 20 november 2017 06:02:20 CET schreef John Ralls: > > > > On Nov 19, 2017, at 8:28 PM, Sébastien de Menten < > sdemen...@gmail.com> > > > > wrote: > > > > > > > > btw, how can I keep backward compati

change in date format in 2.7

2017-12-20 Thread Sébastien de Menten
Hello, In books created in gnucash 2.7, the size of the field for date has been increased from 14 to 19 characters to move from a custom format to an ISO format if I understand properly. This is a backward incompatible change, correct ? ie GC 2.7 will read previous books and "migrate" them to the

Re: change in date format in 2.7

2017-12-21 Thread Sébastien de Menten
Ok but then it will be semi-backward incompatible as it will be only compatible with 2.6.20 which can make it very tricky for users to test 2.8 and then go back to an old gnucash (if needed) < 2.6.20 the user has using before, no ? On piecash side, both formats can be supported so it is more for gn

Re: change in date format in 2.7

2017-12-21 Thread Sébastien de Menten
91848, let's move the discussion there. Regards, John Ralls > On Dec 21, 2017, at 10:49 AM, Sébastien de Menten wrote: > > Ok but then it will be semi-backward incompatible as it will be only compatible with 2.6.20 which can make it very tricky for users to test 2.8 and then go back