mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 20:23:57 +00:00
29 lines
631 B
Python
29 lines
631 B
Python
|
from rich.progress import (
|
||
|
BarColumn,
|
||
|
MofNCompleteColumn,
|
||
|
TaskProgressColumn,
|
||
|
TextColumn,
|
||
|
TimeElapsedColumn,
|
||
|
TimeRemainingColumn,
|
||
|
)
|
||
|
|
||
|
from freqtrade.util.rich_progress import CustomProgress
|
||
|
|
||
|
|
||
|
def get_progress_tracker(**kwargs):
|
||
|
"""
|
||
|
Get progress Bar with custom columns.
|
||
|
"""
|
||
|
return CustomProgress(
|
||
|
TextColumn("[progress.description]{task.description}"),
|
||
|
BarColumn(bar_width=None),
|
||
|
MofNCompleteColumn(),
|
||
|
TaskProgressColumn(),
|
||
|
"•",
|
||
|
TimeElapsedColumn(),
|
||
|
"•",
|
||
|
TimeRemainingColumn(),
|
||
|
expand=True,
|
||
|
**kwargs,
|
||
|
)
|