b2sdk.transfer.inbound.downloader.abstract
– Downloader base class¶
-
class
b2sdk.transfer.inbound.downloader.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
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).
-
abstract
download
(file, response, metadata, session, encryption: Optional[b2sdk.encryption.setting.EncryptionSetting] = None)[source]¶ @returns (bytes_read, actual_sha1)
-