glanceclient.common.progressbar module

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()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.