code: def bar(
      it,
      label="",
      width=32,
      hide=None,
      empty_char=BAR_EMPTY_CHAR,
      filled_char=BAR_FILLED_CHAR,
      expected_size=None,
      every=1,
  ):
      
      count = len(it) if expected_size is None else expected_size
      with Bar(
          label=label,
          width=width,
          hide=hide,
          empty_char=BAR_EMPTY_CHAR,
          filled_char=BAR_FILLED_CHAR,
          expected_size=count,
          every=every,
      ) as bar:
          for i, item in enumerate(it):
              yield item
  
              bar.show(i + 1)
docs: Progress iterator. Wrap your iterables with it.