Skip to content

Commit 2256943

Browse files
committed
Add init_progress_bar, exit_progress_bar functions
1 parent bc2de19 commit 2256943

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

baidupcs_py/common/progress_bar.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
)
2626

2727

28+
def init_progress_bar():
29+
if not _progress.live._started:
30+
_progress.start()
31+
32+
33+
def exit_progress_bar():
34+
if _progress.live._started:
35+
_progress.stop()
36+
37+
2838
def progress_task_exists(task_id: Optional[TaskID]) -> bool:
2939
if task_id is None:
3040
return False

0 commit comments

Comments
 (0)