b2sdk.transfer.inbound.downloader.simple – SimpleDownloader

class b2sdk.transfer.inbound.downloader.simple.SimpleDownloader(*args, **kwargs)[source]

Bases: b2sdk.transfer.inbound.downloader.abstract.AbstractDownloader

__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

is_suitable(metadata, progress_listener)[source]

Analyze metadata (possibly against options passed earlier to constructor to find out whether the given download request should be handled by this downloader).

download(file, response, metadata, session)[source]

@returns (bytes_read, actual_sha1)