Hello,
I have a certain way i want to do something but im not sure where to start, or if python can even do it.
what i want is a way to display the current action during a large data conversion program.... I want it to look like an GUI installer but have it be text based. let me demonstate......
(imaginary screen)
__________________________________
| step 1: working
| step 2: not started
| step 3: not started
| step 4: not started
| step 5: not started
|
| currently: doing sub step a of step 1
|
|
|
| queries run: 12345
-----------------------------------
then lets say 45 minutes later....
__________________________________
| step 1: done; no errors, no warnings
| step 2: done; no errors, no warnings
| step 3: done; no errors, no warnings
| step 4: working
| step 5: not started
|
| currently: doing sub step d of step 4
|
|
|
| queries run: 987654
-----------------------------------
but i want that without the screen scrolling.
in progress, thats an easy thing to do, but what about python? if not, i can just have it output to a html file every 5 seconds or so or something and just refresh my browser when i want an update.
sys.stdout.write a good place to start?