Progress reporters¶
Note
Concrete classes described in this chapter implement methods defined in AbstractProgressListener
-
class
b2sdk.v1.
AbstractProgressListener
[source]¶ Interface expected by B2Api upload and download methods to report on progress.
This interface just accepts the number of bytes transferred so far. Subclasses will need to know the total size if they want to report a percent done.
-
abstract
set_total_bytes
(total_byte_count)[source]¶ Always called before __enter__ to set the expected total number of bytes.
May be called more than once if an upload is retried.
- Parameters
total_byte_count (int) – expected total number of bytes
-
abstract
-
class
b2sdk.v1.
TqdmProgressListener
(description, *args, **kwargs)[source]¶ Progress listener based on tqdm library.