How to get progress in python script.

Discussion in 'Python' started by Rolando Cañer Roblejo, Sep 28, 2012.

  1. 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.
    Rolando Cañer Roblejo, Sep 28, 2012
    #1
    1. Advertising

  2. Rolando Cañer Roblejo

    John Gordon Guest

    In <> =?ISO-8859-1?Q?Rolando_Ca=F1er_Roblejo?= <> 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
    B is for Basil, assaulted by bears
    -- Edward Gorey, "The Gashlycrumb Tinies"
    John Gordon, Sep 28, 2012
    #2
    1. Advertising

  3. 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.
    Colin J. Williams, Sep 30, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charlie Zhang
    Replies:
    3
    Views:
    1,244
    Paul Lutus
    Aug 16, 2004
  2. Leo Jay
    Replies:
    1
    Views:
    252
    Peter Hansen
    Jul 14, 2005
  3. Rajarshi
    Replies:
    1
    Views:
    288
    Larry Bates
    May 18, 2007
  4. Jean-Michel Pichavant

    Re: How to get progress in python script.

    Jean-Michel Pichavant, Sep 28, 2012, in forum: Python
    Replies:
    0
    Views:
    212
    Jean-Michel Pichavant
    Sep 28, 2012
  5. Saikat Saha
    Replies:
    1
    Views:
    180
    Ray_Net
    Feb 11, 2014
Loading...

Share This Page