counter - Python dashboard -
i have code this, wich takes string file , search text in strings
#!/usr/bin/python3 def get_args(): p.set_defaults(datas=os.getcwd()+"\\data.txt") return parser.parse_args() ... code ... while true: try: if rrr.search(content) none: print(data + " - false") else: result = rrr.findall(content) row in result: print(data + "\t" + row) except queue.empty: break except exception: print("error " + data) self.q.task_done() ... code ... main() because file data.txt contains > 200.000 strings, want see how long wait while script finish.
how do: 1. count , print how many strings completed 2. count , print how many strings left 3. approx time finish scans. 4. how many false , , errors 5. counters in 1 string
count total lines in file , show message every each 1%
Comments
Post a Comment