コード例 #1
0
 def _create_total_bar(self):
     return utils.create_progress_bar(
         total=1,
         desc='Layers',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
コード例 #2
0
ファイル: push.py プロジェクト: scrapinghub/shub
 def _create_total_bar(self):
     return utils.create_progress_bar(
         total=1,
         desc='Layers',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
コード例 #3
0
 def _create_progress_bar(self):
     return utils.create_progress_bar(
         total=DEFAULT_TOTAL_PROGRESS,
         desc='Progress',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
コード例 #4
0
ファイル: deploy.py プロジェクト: scrapinghub/shub
 def _create_progress_bar(self):
     return utils.create_progress_bar(
         total=DEFAULT_TOTAL_PROGRESS,
         desc='Progress',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
コード例 #5
0
ファイル: build.py プロジェクト: rowhit/shub
 def __init__(self, events):
     super(_BuildProgress, self).__init__(events)
     self.bar = utils.create_progress_bar(
         total=1,
         desc='Steps',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}',
     )
     self.is_built = False
コード例 #6
0
ファイル: build.py プロジェクト: scrapinghub/shub
 def __init__(self, events):
     super(_BuildProgress, self).__init__(events)
     self.bar = utils.create_progress_bar(
         total=1,
         desc='Steps',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}',
     )
     self.is_built = False
コード例 #7
0
ファイル: push.py プロジェクト: scrapinghub/shub
 def _create_bar_per_layer(self, layer_id, total, initial):
     return utils.create_progress_bar(
         desc=layer_id,
         total=total,
         initial=initial,
         unit='B',
         unit_scale=True,
         # don't need estimates here, keep only rate
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{rate_fmt}]',
     )
コード例 #8
0
 def _create_bar_per_layer(self, layer_id, total, initial):
     return utils.create_progress_bar(
         desc=layer_id,
         total=total,
         initial=initial,
         unit='B',
         unit_scale=True,
         # don't need estimates here, keep only rate
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{rate_fmt}]',
     )