Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30412 > unrolled thread

How to get progress in python script.

Started byRolando Cañer Roblejo <rolando.caner@gmail.com>
First post2012-09-28 12:26 -0400
Last post2012-09-29 22:10 -0400
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  How to get progress in python script. Rolando Cañer Roblejo <rolando.caner@gmail.com> - 2012-09-28 12:26 -0400
    Re: How to get progress in python script. John Gordon <gordon@panix.com> - 2012-09-28 16:36 +0000
    Re: How to get progress in python script. "Colin J. Williams" <cjw@ncf.ca> - 2012-09-29 22:10 -0400

#30412 — How to get progress in python script.

FromRolando Cañer Roblejo <rolando.caner@gmail.com>
Date2012-09-28 12:26 -0400
SubjectHow to get progress in python script.
Message-ID<mailman.1571.1348849432.27098.python-list@python.org>
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 file showing the progress and the external program can check that 
file, but I think might happen file read/write locking issues.

Thanks.

[toc] | [next] | [standalone]


#30415

FromJohn Gordon <gordon@panix.com>
Date2012-09-28 16:36 +0000
Message-ID<k44jn4$hrn$1@reader1.panix.com>
In reply to#30412
In <mailman.1571.1348849432.27098.python-list@python.org> =?ISO-8859-1?Q?Rolando_Ca=F1er_Roblejo?= <rolando.caner@gmail.com> writes:

> 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 file showing the progress and the external program can check that 
> file, but I think might happen file read/write locking issues.

The external program should open the progress file for read only, so I
wouldn't think file locking would be an issue.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

[toc] | [prev] | [next] | [standalone]


#30533

From"Colin J. Williams" <cjw@ncf.ca>
Date2012-09-29 22:10 -0400
Message-ID<k489pn$4ut$1@theodyn.ncf.ca>
In reply to#30412
On 28/09/2012 12:26 PM, Rolando Cañer Roblejo wrote:
> 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 file showing the progress and the external program can check that
> file, but I think might happen file read/write locking issues.
>
> Thanks.
Would the Python profiler meet your need?

Colin W.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web