class_docstr: Class for generating a command-line progressbar
  
  Parameters
  ----------
  max_value : int
      Maximum value of process (e.g. number of samples to process, bytes to
      download, etc.).
  initial_value : int
      Initial value of process, useful when resuming process from a specific
      value, defaults to 0.
  mesg : str
      Message to include at end of progress bar.
  max_chars : int
      Number of characters to use for progress bar (be sure to save some room
      for the message and % complete as well).
  progress_character : char
      Character in the progress bar that indicates the portion completed.
  spinner : bool
      Show a spinner.  Useful for long-running processes that may not
      increment the progress bar very often.  This provides the user with
      feedback that the progress has not stalled.
class_docstr_tok: ["Class","for","generating","a","command-line","progressbar","Parameters","--","--","--","--","--","max_value",":","int","Maximum","value","of","process","(","e.g",".","number","of","samples","to","process",",","bytes","to","download",",","etc.",")",".","initial_value",":","int","Initial","value","of","process",",","useful","when","resuming","process","from","a","specific","value",",","defaults","to","0.","mesg",":","str","Message","to","include","at","end","of","progress","bar",".","max_chars",":","int","Number","of","characters","to","use","for","progress","bar","(","be","sure","to","save","some","room","for","the","message","and","%","complete","as","well",")",".","progress_character",":","char","Character","in","the","progress","bar","that","indicates","the","portion","completed",".","spinner",":","bool","Show","a","spinner",".","Useful","for","long-running","processes","that","may","not","increment","the","progress","bar","very","often",".","This","provides","the","user","with","feedback","that","the","progress","has","not","stalled","."]
code: def __init__(
      self,
      max_value,
      initial_value=0,
      mesg="",
      max_chars=40,
      progress_character=".",
      spinner=False,
  ):
      self.cur_value = initial_value
      self.max_value = float(max_value)
      self.mesg = mesg
      self.max_chars = max_chars
      self.progress_character = progress_character
      self.spinner = spinner
      self.spinner_index = 0
      self.n_spinner = len(self.spinner_symbols)
  
file_path: vispy/vispy/util/fetching.py
imports: from math import log
  import os
  from os import path
  import sys
  import shutil
  import time
  import urllib.request
  from ..util.config import config
label_desc: Use image node_id 1 to create a new ProgressBar object from inherited base classes: object with example: obj = ProgressBar(max_value, initial_value, mesg, max_chars, progress_character, spinner)