Difference between revisions of "Talk:Python shell"

From GnuCash
Jump to: navigation, search
(Basic example)
(Some ideas)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
--[[User:Christopherlam|Christopherlam]] ([[User talk:Christopherlam|talk]]) 10:29, 16 August 2019 (UTC)
 
--[[User:Christopherlam|Christopherlam]] ([[User talk:Christopherlam|talk]]) 10:29, 16 August 2019 (UTC)
 
: [[User:Christopherlam|Christopherlam]] - I have added a very basic example. --[[User:C.holtermann|C.holtermann]] ([[User talk:C.holtermann|talk]]) 16:05, 31 March 2020 (UTC)
 
: [[User:Christopherlam|Christopherlam]] - I have added a very basic example. --[[User:C.holtermann|C.holtermann]] ([[User talk:C.holtermann|talk]]) 16:05, 31 March 2020 (UTC)
 +
:[[User:C.holterman|Christoph]] Not really. You created an example for using the bindings. I'm also not sure that the python console/shell is of much use. [[User:Jralls|John Ralls]] ([[User talk:Jralls|talk]]) 04:11, 1 April 2020 (UTC)
 +
:I like the bindings and I like to be able to use them in a shell. The python bindings are an essential part of my gnucash workflow. I can imagine different possibilities of their usage in the python shell. That is mostly reading and not creating as I rarely dare to do that with a running gnucash. The shell essentially has gnucash running. I'll port my scripts so that I can access them from the gnucash shell as well. I'd like to find out how to start some of the gnucash example scripts out of the shell. I'd also like to experiment about creating objects and how that can get displayed in gnucash. It would be nice to be able to use the python shell like the development shell in browser. An interesting option would be to be able to get the object the cursor is at. I.e. the invoice that is open or the split. I'll see what I would like to do, what I have time to try and what you accept. Have a nice day! --[[User:C.holtermann|C.holtermann]] ([[User talk:C.holtermann|talk]]) 06:34, 1 April 2020 (UTC)

Latest revision as of 06:34, 1 April 2020

Hi! Would be nice to understand what to use Python shell for. An example session would be good! eg. create book object, query its accounts, account splits, create a sum of filtered splits. --Christopherlam (talk) 10:29, 16 August 2019 (UTC)

Christopherlam - I have added a very basic example. --C.holtermann (talk) 16:05, 31 March 2020 (UTC)
Christoph Not really. You created an example for using the bindings. I'm also not sure that the python console/shell is of much use. John Ralls (talk) 04:11, 1 April 2020 (UTC)
I like the bindings and I like to be able to use them in a shell. The python bindings are an essential part of my gnucash workflow. I can imagine different possibilities of their usage in the python shell. That is mostly reading and not creating as I rarely dare to do that with a running gnucash. The shell essentially has gnucash running. I'll port my scripts so that I can access them from the gnucash shell as well. I'd like to find out how to start some of the gnucash example scripts out of the shell. I'd also like to experiment about creating objects and how that can get displayed in gnucash. It would be nice to be able to use the python shell like the development shell in browser. An interesting option would be to be able to get the object the cursor is at. I.e. the invoice that is open or the split. I'll see what I would like to do, what I have time to try and what you accept. Have a nice day! --C.holtermann (talk) 06:34, 1 April 2020 (UTC)