Tracking the status of python script execution

  • Thread starter Shyam Parimal Katti
  • Start date
S

Shyam Parimal Katti

Hello All,

I am looking for a library that can help me trace the status of a live
python script execution. i.e if I have a python script `x.py` with 200
lines, when I execute the script with `python x.py`, is there a way to
trace the status of this execution in terms of number of lines executed so
far?

Background: We have a Web page with "Run" button that executes the program
`x.py` when a user clicks it. We were looking of a way to keep the user
informed about the status of run by using: (no. of lines executed/total
lines) *100. Since the script `x.py` is running multiple sql queries, it
usually won't be the case that the script would complete within few seconds
of its execution.


Regards
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top