rich.progress_bar¶
- class rich.progress_bar.ProgressBar(total=100.0, completed=0, width=None, pulse=False, style='bar.back', complete_style='bar.complete', finished_style='bar.finished', pulse_style='bar.pulse', animation_time=None)[ソース]¶
(プログレス)バーをレンダリングします。rich.progressによって使用されます。
- パラメータ
total (float, オプション) – バーのステップ数。デフォルトは100です。パルスアニメーションをレンダリングするにはNoneに設定します。
completed (float, オプション) – 完了したステップ数。デフォルトは0です。
width (int, オプション) – バーの幅、または最大幅の場合は
None
。デフォルトはNoneです。pulse (bool, オプション) – パルス効果を有効にします。デフォルトはFalseです。Noneのtotalが渡された場合はパルスします。
style (StyleType, オプション) – バーの背景のスタイル。デフォルトは“bar.back”です。
complete_style (StyleType, オプション) – 完了したバーのスタイル。デフォルトは“bar.complete”です。
finished_style (StyleType, オプション) – 完了したバーのスタイル。デフォルトは“bar.finished”です。
pulse_style (StyleType, オプション) – パルスバーのスタイル。デフォルトは“bar.pulse”です。
animation_time (Optional[float], オプション) – アニメーションに使用する時間(秒)、またはシステム時間を使用する場合はNone。