glanceclient.common.progressbar module

class glanceclient.common.progressbar.VerboseFileWrapper(wrapped, totalsize)

Bases: glanceclient.common.progressbar._ProgressBarBase

A file wrapper with a progress bar.

The file wrapper shows and advances a progress bar whenever the wrapped file’s read method is called.

read(*args, **kwargs)
class glanceclient.common.progressbar.VerboseIteratorWrapper(wrapped, totalsize)

Bases: glanceclient.common.progressbar._ProgressBarBase

An iterator wrapper with a progress bar.

The iterator wrapper shows and advances a progress bar whenever the wrapped data is consumed from the iterator.

Note

Use only with iterator that yield strings.

next()