Difference between revisions of "User:Fleminra"
From GnuCash
(→Personal wish list: and again comments) |
|||
Line 14: | Line 14: | ||
::: I don't want to disable the Bayesian import altogether.. it's still quite useful for dynamic data like bank statements where transactions vary from month to month. I just want to be able to write plug-in (see below) that is smart enough to dump data into specific GnuCash accounts (actually not "smart" but "dumb" because this ''specific'' plug-in would be hardcoded and inflexible.) —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | ::: I don't want to disable the Bayesian import altogether.. it's still quite useful for dynamic data like bank statements where transactions vary from month to month. I just want to be able to write plug-in (see below) that is smart enough to dump data into specific GnuCash accounts (actually not "smart" but "dumb" because this ''specific'' plug-in would be hardcoded and inflexible.) —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | ||
:::: Ok. But does this refer to existing importing features or to a new, yet-to-be-written importing feature? In the former case, it would make a valid enhancement request suitable for [[Bugzilla]], effectively asking to turn this single preference setting into multiple settings on a per-importing-module basis. In the latter case, the programmer of such an yet-to-be-written feature already has the full flexibility to either import Transactions directly into the gnucash engine or passing them through the available matcher. --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | :::: Ok. But does this refer to existing importing features or to a new, yet-to-be-written importing feature? In the former case, it would make a valid enhancement request suitable for [[Bugzilla]], effectively asking to turn this single preference setting into multiple settings on a per-importing-module basis. In the latter case, the programmer of such an yet-to-be-written feature already has the full flexibility to either import Transactions directly into the gnucash engine or passing them through the available matcher. --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | ||
+ | ::::: Yet-to-be-written feature. This sounds like what I'm looking for. —[[User:Fleminra|Fleminra]] 06:02, 24 February 2006 (EST) | ||
** Would like to do this ''without'' downloading/compiling GnuCash or dependent source code. | ** Would like to do this ''without'' downloading/compiling GnuCash or dependent source code. | ||
:: Huh? I don't understand this part. What do you mean here? To use gnucash you have to download and compile it. If you don't want to do that, where's the connection to gnucash? Again, that qof project http://qof.sourceforge.net might already be what you are looking for (but its maintainer has just announced he'll be out of town for a few days/weeks) | :: Huh? I don't understand this part. What do you mean here? To use gnucash you have to download and compile it. If you don't want to do that, where's the connection to gnucash? Again, that qof project http://qof.sourceforge.net might already be what you are looking for (but its maintainer has just announced he'll be out of town for a few days/weeks) | ||
::: I would like to extend GnuCash (the binaries of which I get from Debian/Ubuntu) without needing to download the GnuCash source code. I should say "I would like to use GnuCash without having to compile it ''myself'' — I'll let my distributor do that." —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | ::: I would like to extend GnuCash (the binaries of which I get from Debian/Ubuntu) without needing to download the GnuCash source code. I should say "I would like to use GnuCash without having to compile it ''myself'' — I'll let my distributor do that." —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | ||
:::: As I said: The feature is already available in GnuCash. Modules like the OFX importer or the HBCI/Aqbanking importer are fully self-contained (technically, each one is a dynamic library loaded by gnucash at run-time); you or anyone else could very well develop yet another such module, which could be loaded and/or exchanged without recompiling anything else inside gnucash. (Except that currently the list of to-be-loaded modules is a hardcoded list in (SVN version) src/bin/gnucash-bin.c to avoid questions of module authorization, signatures, or integrity checks, but that could be changed or extended easily if needed.) --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | :::: As I said: The feature is already available in GnuCash. Modules like the OFX importer or the HBCI/Aqbanking importer are fully self-contained (technically, each one is a dynamic library loaded by gnucash at run-time); you or anyone else could very well develop yet another such module, which could be loaded and/or exchanged without recompiling anything else inside gnucash. (Except that currently the list of to-be-loaded modules is a hardcoded list in (SVN version) src/bin/gnucash-bin.c to avoid questions of module authorization, signatures, or integrity checks, but that could be changed or extended easily if needed.) --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | ||
+ | ::::: Yep, that sounds like what I need. I have to admit I was judging GnuCash's extensibility based on what I see in the GUI or in the user documentation, and not from reviewing the source code. Indeed, it sounds like gnucash-bin.c would need to change for what I'm proposing (so I'll have to download/build GnuCash at least for now). I think I'll put together some proof-of-concept import plug-in(s) before asking for a plug-in manager in the GUI. Thanks for pointing me in the right direction.. I think think I know where to start now. —[[User:Fleminra|Fleminra]] 06:02, 24 February 2006 (EST) | ||
**I'm not planning on waiting for my bank/employer's consent before making (my copy of) GnuCash suck in my bank/employer's data. | **I'm not planning on waiting for my bank/employer's consent before making (my copy of) GnuCash suck in my bank/employer's data. | ||
** (weekly!) paystub data from employer, including several tax and other deductions. This can be scraped from one of the company's intranet web sites. | ** (weekly!) paystub data from employer, including several tax and other deductions. This can be scraped from one of the company's intranet web sites. | ||
Line 30: | Line 32: | ||
:::Because I think my employer is likely to never support any standard for getting paystub data.. For sure this is a hack.. in fact I would ultimately prefer that suppliers of finance data encode it in RDF and not even OFX/QIF, to make it most broadly accessible. And some financial instutions may disapprove of me doing this, so I would suggest these unauthorized plugins never be distributed with GnuCash (to redirect complaints from those institutions), but be shared by users by some other means (if at all... e.g. there may be no interest in my plug-in to get my employer's data). —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | :::Because I think my employer is likely to never support any standard for getting paystub data.. For sure this is a hack.. in fact I would ultimately prefer that suppliers of finance data encode it in RDF and not even OFX/QIF, to make it most broadly accessible. And some financial instutions may disapprove of me doing this, so I would suggest these unauthorized plugins never be distributed with GnuCash (to redirect complaints from those institutions), but be shared by users by some other means (if at all... e.g. there may be no interest in my plug-in to get my employer's data). —[[User:Fleminra|Fleminra]] 13:56, 23 February 2006 (EST) | ||
::::Excuse me, but it seems to me that you seriously underestimate the complexity of the involved requirements for such a feature. It is a fully ''necessary condition'' that the "original data source" will actually offer that data in a known format. In almost all cases this implicitly also means that the data source has given permission to pull down that data, as is the case for Finance::Quote or ofx directconnect. I have no idea what you have in mind here -- do you think that anyone who has data stored somewhere will also have it accessible via some web server? Forget this, please. Either someone explicitly decided to offer the data for download, in which case the next question would be of download protocols (http, http+ssl, ftp, hbci, whatever?) and file formats. Or someone does not offer the data for download, in which case you can forget any importing feature into any of your programs, including gnucash. Getting a data source to offer its data for download is completely outside of the scope of gnucash. ''If'' you can name a particular data source that ''does'' offer its data for download, ''then'' we will be able to continue to talk about this in the scope of the gnucash project, and the next questions will be about the protocol and file formats this data is in. But a known download availability is a necessary condition that cannot by any means be skipped. --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | ::::Excuse me, but it seems to me that you seriously underestimate the complexity of the involved requirements for such a feature. It is a fully ''necessary condition'' that the "original data source" will actually offer that data in a known format. In almost all cases this implicitly also means that the data source has given permission to pull down that data, as is the case for Finance::Quote or ofx directconnect. I have no idea what you have in mind here -- do you think that anyone who has data stored somewhere will also have it accessible via some web server? Forget this, please. Either someone explicitly decided to offer the data for download, in which case the next question would be of download protocols (http, http+ssl, ftp, hbci, whatever?) and file formats. Or someone does not offer the data for download, in which case you can forget any importing feature into any of your programs, including gnucash. Getting a data source to offer its data for download is completely outside of the scope of gnucash. ''If'' you can name a particular data source that ''does'' offer its data for download, ''then'' we will be able to continue to talk about this in the scope of the gnucash project, and the next questions will be about the protocol and file formats this data is in. But a known download availability is a necessary condition that cannot by any means be skipped. --[[User:Cstim|Cstim]] 04:51, 24 February 2006 (EST) | ||
+ | :::::In the case of my pay stubs, I'm already done.. the only missing part getting GnuCash to invoke it. The paystub data is available on an intranet web site, in broken, sloppy, undocumented, and proprietary — yet ''known-to-me'' (reverse engineered) and consistent — HTML. I've already written a script that goes through the contortions of logging in, dealing with my employer's home-brewed server-side session scheme (i.e. not cookies), downloading/tidying the broken HTML, and extracting useful data (using XPath). For now, it just dumps it into a concise XML file. It's on the order of 100 lines of Python. I will write one for [[Wikipedia:Pacific Gas and Electric Company|PG&E]] to share here (maybe tomorrow). All the data I'm talking about is already (securely) accessible to me in some electronic way. From what you've said, I'm now optimistic that this should be straightforward. All I should need to do is hard-code my new plugins into gnucash-bin.c (for proof of concept at least), and clone the interface implemented by one of the existing import modules. It seems to me the main obstacle may be collecting the dependencies for the build (I haven't tried to build Gnucash for a few years). —[[User:Fleminra|Fleminra]] 06:02, 24 February 2006 (EST) | ||
** utility bills: how much goes to electricy, gas, tax? | ** utility bills: how much goes to electricy, gas, tax? | ||
* A way to link GnuCash data to/from ''arbitrary'' other data, like my relational database that tracks all those electronics rebates, link to e-mails pertinent to a particular account/transaction/split, link to locally archived PDF receipts, link to related photographs, etc. I already link ''into'' the GnuCash file using GUIDs and [[Wikipedia:XPath|XPath]] (for the rebate-tracking application), but parsing XML documents on the order of 10 MB is unhealthy for application responsiveness. (see [[Wikipedia:Semantic Web|Semantic Web]], [[Wikipedia:GNOME Storage|GNOME Storage]].) | * A way to link GnuCash data to/from ''arbitrary'' other data, like my relational database that tracks all those electronics rebates, link to e-mails pertinent to a particular account/transaction/split, link to locally archived PDF receipts, link to related photographs, etc. I already link ''into'' the GnuCash file using GUIDs and [[Wikipedia:XPath|XPath]] (for the rebate-tracking application), but parsing XML documents on the order of 10 MB is unhealthy for application responsiveness. (see [[Wikipedia:Semantic Web|Semantic Web]], [[Wikipedia:GNOME Storage|GNOME Storage]].) |
Revision as of 11:02, 24 February 2006
Robert Fleming.
Not a GnuCash developer.
flеmіng⊚ҫѕ∙wаѕhіngtоn∙еdu (transcribe, don't copy+paste)
Personal wish list
A general note: Please please please make sure any enhancement requests are checked against the current Subversino/1.9.x/upcoming 2.0.0 version! The development of the 1.8.x series has stopped completely; nothing will be fixed or extended there. If you want to contribute to the development, currently there's no way around checking out the code from the Subversion server. --Cstim 04:51, 24 February 2006 (EST)
- Get GnuCash Wiki to Interwiki with Wikipedia to facilitate links like [[Wikipedia:remote procedure call]]
- Viable database back-end. XML's strength is data exchange among heterogenous platforms, which is not really what this part of GnuCash is doing.
- A way to suck in external, repetetive data with minimum of hassle. Requires extensibility and/or non-file-based external software interface. Would like to bypass the (practically) non-deterministic Bayesian import mechanism because in this case the data is consistent and well defined.
- What's wrong with deactivating the checkbox "use bayesian importer" in properties -> Online banking/Importing? Also, I've heard several requests about regexp/rule-based importers but so far nobody bothered to actually implement any of those, so that's why we still don't have anything else.
- I don't want to disable the Bayesian import altogether.. it's still quite useful for dynamic data like bank statements where transactions vary from month to month. I just want to be able to write plug-in (see below) that is smart enough to dump data into specific GnuCash accounts (actually not "smart" but "dumb" because this specific plug-in would be hardcoded and inflexible.) —Fleminra 13:56, 23 February 2006 (EST)
- Ok. But does this refer to existing importing features or to a new, yet-to-be-written importing feature? In the former case, it would make a valid enhancement request suitable for Bugzilla, effectively asking to turn this single preference setting into multiple settings on a per-importing-module basis. In the latter case, the programmer of such an yet-to-be-written feature already has the full flexibility to either import Transactions directly into the gnucash engine or passing them through the available matcher. --Cstim 04:51, 24 February 2006 (EST)
- Yet-to-be-written feature. This sounds like what I'm looking for. —Fleminra 06:02, 24 February 2006 (EST)
- Ok. But does this refer to existing importing features or to a new, yet-to-be-written importing feature? In the former case, it would make a valid enhancement request suitable for Bugzilla, effectively asking to turn this single preference setting into multiple settings on a per-importing-module basis. In the latter case, the programmer of such an yet-to-be-written feature already has the full flexibility to either import Transactions directly into the gnucash engine or passing them through the available matcher. --Cstim 04:51, 24 February 2006 (EST)
- I don't want to disable the Bayesian import altogether.. it's still quite useful for dynamic data like bank statements where transactions vary from month to month. I just want to be able to write plug-in (see below) that is smart enough to dump data into specific GnuCash accounts (actually not "smart" but "dumb" because this specific plug-in would be hardcoded and inflexible.) —Fleminra 13:56, 23 February 2006 (EST)
- What's wrong with deactivating the checkbox "use bayesian importer" in properties -> Online banking/Importing? Also, I've heard several requests about regexp/rule-based importers but so far nobody bothered to actually implement any of those, so that's why we still don't have anything else.
- Would like to do this without downloading/compiling GnuCash or dependent source code.
- Huh? I don't understand this part. What do you mean here? To use gnucash you have to download and compile it. If you don't want to do that, where's the connection to gnucash? Again, that qof project http://qof.sourceforge.net might already be what you are looking for (but its maintainer has just announced he'll be out of town for a few days/weeks)
- I would like to extend GnuCash (the binaries of which I get from Debian/Ubuntu) without needing to download the GnuCash source code. I should say "I would like to use GnuCash without having to compile it myself — I'll let my distributor do that." —Fleminra 13:56, 23 February 2006 (EST)
- As I said: The feature is already available in GnuCash. Modules like the OFX importer or the HBCI/Aqbanking importer are fully self-contained (technically, each one is a dynamic library loaded by gnucash at run-time); you or anyone else could very well develop yet another such module, which could be loaded and/or exchanged without recompiling anything else inside gnucash. (Except that currently the list of to-be-loaded modules is a hardcoded list in (SVN version) src/bin/gnucash-bin.c to avoid questions of module authorization, signatures, or integrity checks, but that could be changed or extended easily if needed.) --Cstim 04:51, 24 February 2006 (EST)
- Yep, that sounds like what I need. I have to admit I was judging GnuCash's extensibility based on what I see in the GUI or in the user documentation, and not from reviewing the source code. Indeed, it sounds like gnucash-bin.c would need to change for what I'm proposing (so I'll have to download/build GnuCash at least for now). I think I'll put together some proof-of-concept import plug-in(s) before asking for a plug-in manager in the GUI. Thanks for pointing me in the right direction.. I think think I know where to start now. —Fleminra 06:02, 24 February 2006 (EST)
- As I said: The feature is already available in GnuCash. Modules like the OFX importer or the HBCI/Aqbanking importer are fully self-contained (technically, each one is a dynamic library loaded by gnucash at run-time); you or anyone else could very well develop yet another such module, which could be loaded and/or exchanged without recompiling anything else inside gnucash. (Except that currently the list of to-be-loaded modules is a hardcoded list in (SVN version) src/bin/gnucash-bin.c to avoid questions of module authorization, signatures, or integrity checks, but that could be changed or extended easily if needed.) --Cstim 04:51, 24 February 2006 (EST)
- I would like to extend GnuCash (the binaries of which I get from Debian/Ubuntu) without needing to download the GnuCash source code. I should say "I would like to use GnuCash without having to compile it myself — I'll let my distributor do that." —Fleminra 13:56, 23 February 2006 (EST)
- Huh? I don't understand this part. What do you mean here? To use gnucash you have to download and compile it. If you don't want to do that, where's the connection to gnucash? Again, that qof project http://qof.sourceforge.net might already be what you are looking for (but its maintainer has just announced he'll be out of town for a few days/weeks)
- I'm not planning on waiting for my bank/employer's consent before making (my copy of) GnuCash suck in my bank/employer's data.
- (weekly!) paystub data from employer, including several tax and other deductions. This can be scraped from one of the company's intranet web sites.
- (weekly!) 401k contributions, spread across several funds. Can be scraped from netbenefits.fidelity.com.
- As for these requests: Do you mean your wish is that gnucash should "retrieve paystub data from employers (web) server" and "retrieve 401k contribution statements from some other (web) server"? In that case, a necessary condition for that wish is that this data is made available by that server through an openly documented protocol, like a http download file, or a ofx direct connect access, or a HBCI online banking server (the last one only exists in Germany). If that is the case, then it's a question of whether gnucash implements that particular online banking/statement retrieval protocol. --Cstim 08:01, 23 February 2006 (EST)
- I would like to do something like Finance::Quote: pull in useful data without the source's permission. After thinking about it, and re-reading my earlier comment, I guess what I want is for GnuCash to be "pluggable" in the Firefox/Thunderbird sense (where nearly all behavior can be modified/augmented) or in the XMMS sense (where plugins strictly fall into one of a few categories like input, processing, and output). For example, if this were in Python, GnuCash could do something like:
import users_custom_module
new_transactions = users_custom_module.get_new_transactions()
for transaction in transactions:
# do something with 'transaction' to suck it into my GnuCash data
# transaction would need to implement some specific API for GnuCash to get transaction data
- Because I think my employer is likely to never support any standard for getting paystub data.. For sure this is a hack.. in fact I would ultimately prefer that suppliers of finance data encode it in RDF and not even OFX/QIF, to make it most broadly accessible. And some financial instutions may disapprove of me doing this, so I would suggest these unauthorized plugins never be distributed with GnuCash (to redirect complaints from those institutions), but be shared by users by some other means (if at all... e.g. there may be no interest in my plug-in to get my employer's data). —Fleminra 13:56, 23 February 2006 (EST)
- Excuse me, but it seems to me that you seriously underestimate the complexity of the involved requirements for such a feature. It is a fully necessary condition that the "original data source" will actually offer that data in a known format. In almost all cases this implicitly also means that the data source has given permission to pull down that data, as is the case for Finance::Quote or ofx directconnect. I have no idea what you have in mind here -- do you think that anyone who has data stored somewhere will also have it accessible via some web server? Forget this, please. Either someone explicitly decided to offer the data for download, in which case the next question would be of download protocols (http, http+ssl, ftp, hbci, whatever?) and file formats. Or someone does not offer the data for download, in which case you can forget any importing feature into any of your programs, including gnucash. Getting a data source to offer its data for download is completely outside of the scope of gnucash. If you can name a particular data source that does offer its data for download, then we will be able to continue to talk about this in the scope of the gnucash project, and the next questions will be about the protocol and file formats this data is in. But a known download availability is a necessary condition that cannot by any means be skipped. --Cstim 04:51, 24 February 2006 (EST)
- In the case of my pay stubs, I'm already done.. the only missing part getting GnuCash to invoke it. The paystub data is available on an intranet web site, in broken, sloppy, undocumented, and proprietary — yet known-to-me (reverse engineered) and consistent — HTML. I've already written a script that goes through the contortions of logging in, dealing with my employer's home-brewed server-side session scheme (i.e. not cookies), downloading/tidying the broken HTML, and extracting useful data (using XPath). For now, it just dumps it into a concise XML file. It's on the order of 100 lines of Python. I will write one for PG&E to share here (maybe tomorrow). All the data I'm talking about is already (securely) accessible to me in some electronic way. From what you've said, I'm now optimistic that this should be straightforward. All I should need to do is hard-code my new plugins into gnucash-bin.c (for proof of concept at least), and clone the interface implemented by one of the existing import modules. It seems to me the main obstacle may be collecting the dependencies for the build (I haven't tried to build Gnucash for a few years). —Fleminra 06:02, 24 February 2006 (EST)
- Excuse me, but it seems to me that you seriously underestimate the complexity of the involved requirements for such a feature. It is a fully necessary condition that the "original data source" will actually offer that data in a known format. In almost all cases this implicitly also means that the data source has given permission to pull down that data, as is the case for Finance::Quote or ofx directconnect. I have no idea what you have in mind here -- do you think that anyone who has data stored somewhere will also have it accessible via some web server? Forget this, please. Either someone explicitly decided to offer the data for download, in which case the next question would be of download protocols (http, http+ssl, ftp, hbci, whatever?) and file formats. Or someone does not offer the data for download, in which case you can forget any importing feature into any of your programs, including gnucash. Getting a data source to offer its data for download is completely outside of the scope of gnucash. If you can name a particular data source that does offer its data for download, then we will be able to continue to talk about this in the scope of the gnucash project, and the next questions will be about the protocol and file formats this data is in. But a known download availability is a necessary condition that cannot by any means be skipped. --Cstim 04:51, 24 February 2006 (EST)
- I would like to do something like Finance::Quote: pull in useful data without the source's permission. After thinking about it, and re-reading my earlier comment, I guess what I want is for GnuCash to be "pluggable" in the Firefox/Thunderbird sense (where nearly all behavior can be modified/augmented) or in the XMMS sense (where plugins strictly fall into one of a few categories like input, processing, and output). For example, if this were in Python, GnuCash could do something like:
- As for these requests: Do you mean your wish is that gnucash should "retrieve paystub data from employers (web) server" and "retrieve 401k contribution statements from some other (web) server"? In that case, a necessary condition for that wish is that this data is made available by that server through an openly documented protocol, like a http download file, or a ofx direct connect access, or a HBCI online banking server (the last one only exists in Germany). If that is the case, then it's a question of whether gnucash implements that particular online banking/statement retrieval protocol. --Cstim 08:01, 23 February 2006 (EST)
- utility bills: how much goes to electricy, gas, tax?
- A way to link GnuCash data to/from arbitrary other data, like my relational database that tracks all those electronics rebates, link to e-mails pertinent to a particular account/transaction/split, link to locally archived PDF receipts, link to related photographs, etc. I already link into the GnuCash file using GUIDs and XPath (for the rebate-tracking application), but parsing XML documents on the order of 10 MB is unhealthy for application responsiveness. (see Semantic Web, GNOME Storage.)