b2sdk.transferer.abstract

class b2sdk.transferer.abstract.AbstractDownloader(force_chunk_size=None, min_chunk_size=None, max_chunk_size=None)[source]

Bases: object

__init__(force_chunk_size=None, min_chunk_size=None, max_chunk_size=None)[source]

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

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

@returns (bytes_read, actual_sha1)

abstract is_suitable(metadata, progress_listener)[source]

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