MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / __init__

Method __init__

downloader.py:6–16  ·  view source on GitHub ↗
(self, title, count=0.0, run_status=None, fin_status=None, total=100.0, unit='', sep='/', chunk_size=1.0)

Source from the content-addressed store, hash-verified

4
5class ProgressBar(object):
6 def __init__(self, title, count=0.0, run_status=None, fin_status=None, total=100.0, unit='', sep='/', chunk_size=1.0):
7 super(ProgressBar, self).__init__()
8 self.info = "[%s] %s %.2f %s %s %.2f %s"
9 self.title = title
10 self.total = total
11 self.count = count
12 self.chunk_size = chunk_size
13 self.status = run_status or ""
14 self.fin_status = fin_status or " " * len(self.status)
15 self.unit = unit
16 self.seq = sep
17
18 def __get_info(self):
19 #[名称] 状态 进度 单位 分割线 总数 单位

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected