[GNC] Python binding and commodity details
Kalpesh Patel
kalpesh.patel at usa.net
Sat Apr 25 22:40:07 EDT 2026
I should add a bit of details: I save file in XML format. So SQL query is not available unless I temporarily save it to SQL and do so from there on. Security Editor does include namespace column but it won’t help in any way for what I am after, which is to extract it programmatically.
From: David T. <sunfish62 at yahoo.com>
Sent: Saturday, April 25, 2026 12:17 PM
To: gnucash-user at gnucash.org; Kalpesh Patel <kalpesh.patel at usa.net>
Subject: Re: [GNC] Python binding and commodity details
I can't address the exact question, but I imagine with a little digging you could get that info from an sql query on a copy of your data saved in sql.
Also not exactly your question, but does the security editor list allow you to include the namespace column? And if so, would that help you out?
David T.
On April 25, 2026 6:30:57 PM GMT+05:30, Kalpesh Patel <kalpesh.patel at usa.net <mailto:kalpesh.patel at usa.net> > wrote:
Hi GNC community.
This is more likely a question for devs: is there a way to get a list of all
commodities and all their attributes (specifically name space) defined for
each that are in the book by way of Python bindings?
If so, is there an example of such binding code?
Thanks.
_____
gnucash-user mailing list
gnucash-user at gnucash.org <mailto:gnucash-user at gnucash.org>
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
_____
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
David T.
More information about the gnucash-user
mailing list