Summary: | Provide a Scripting API or Command Line API | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Chris Spencer <chrisspen> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | kde.org, tnemeth |
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Chris Spencer
2010-12-04 19:23:25 UTC
Moving this wish to kmymoney4. Hi. This issue is still opened after 11 years :) And I have to admit it's a really useful feature. Not only for scripting purpose, but also for remote access without taking a lot of bandwidth (eg: over ssh-over-ssh). I also would like this feature, only recently needing to run the KMyMoney reports from the command line ( see https://discuss.kde.org/t/can-reports-be-run-from-terminal/2737 ). Have spent quite a bit of time now testing Python to read the KMyMoney XML file, and that has proved challenging due to the many levels of 'tags' within the data, and the account balances requiring a parse through the XML to arrive at a total balance. As the original comment mentioned "GNUCash's Python API", some quick searching. It's not clear but it seems the API is written in C, although this link suggests some python bindings - https://wiki.gnucash.org/wiki/Python_Bindings The shell seems to be written in Python - https://wiki.gnucash.org/wiki/Python_shell. There is a Python interface to GNUCash reports, see https://piecash.readthedocs.io/en/master/ Of course one may ask what has all this to do with KMyMoney. Personally, it seems a lot of ground has been broken that can possibly be used to commence some sort of interface to KMyMoney. It seems GNUCash also uses an XML file. |