MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / progress_bar

Function progress_bar

python/example_code/sts/assume_role_mfa.py:20–26  ·  view source on GitHub ↗

Shows a simple progress bar in the command window.

(seconds)

Source from the content-addressed store, hash-verified

18
19
20def progress_bar(seconds):
21 """Shows a simple progress bar in the command window."""
22 for _ in range(seconds):
23 time.sleep(1)
24 print(".", end="")
25 sys.stdout.flush()
26 print()
27
28
29def unique_name(base_name):

Callers 1

setupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected