Skip to content

Instantly share code, notes, and snippets.

@brantfaircloth
Created May 27, 2011 06:02
Show Gist options
  • Save brantfaircloth/994727 to your computer and use it in GitHub Desktop.
Save brantfaircloth/994727 to your computer and use it in GitHub Desktop.
pretty easy progress indicator
# this works just fine w/ multiprocess...
# now with more flushing
import sys
import time
sys.stdout.write("This is running")
sys.stdout.flush()
for i in range(5):
sys.stdout.write(".")
sys.stdout.flush()
time.sleep(0.1)
sys.stdout.write("\nThis is running2")
sys.stdout.flush()
for i in range(10):
sys.stdout.write(".")
sys.stdout.flush()
time.sleep(0.1)
print ""
@brantfaircloth
Copy link
Author

ooh, i like this spin cursor - much more fancy-pants than my lowly dot flusher ; )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment