Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
use this helper function to print a progress bar for longer-running scripts. 
The progress value is a value between 0.0 and 1.0. If a prefix is present, it 
will be printed before the progress bar. 

src/m/t/mtools-1.1.4/mtools/mgenerate/mgenerate.py   mtools(Download)
                    col.insert(batch)
                    batch = []
                    self.update_progress(float(n) / self.args['number'], prefix='inserting data')
 
        if not self.args['stdout']:
            self.update_progress(1.0, prefix='inserting data')

src/m/t/mtools-HEAD/mtools/mgenerate/mgenerate.py   mtools(Download)
                    col.insert(batch)
                    batch = []
                    self.update_progress(float(n) / self.args['number'], prefix='inserting data')
 
        if not self.args['stdout']:
            self.update_progress(1.0, prefix='inserting data')