예제 #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}]',
     )