How to get progress in python script.

2012-09-28 Thread Rolando Cañer Roblejo
Hi all, Please, I need you suggest me a way to get statistics about a progress of my python script. My python script could take a lot of time processing a file, so I need a way that an external program check the progress of the script. My first idea was that the python script write a temp fil

How to limit CPU usage in Python

2012-09-20 Thread Rolando Cañer Roblejo
Hi all, Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? I saw Resource module but I think it is not the module I am looking for. Some people recommend to use nice and cpulimit unix