b2sdk.transfer.inbound.download_manager – Manager of downloaders¶
-
class
b2sdk.transfer.inbound.download_manager.DownloadManager(services)[source]¶ Bases:
objectHandle complex actions around downloads to free raw_api from that responsibility.
-
DEFAULT_MAX_STREAMS= 8¶
-
DEFAULT_MIN_PART_SIZE= 104857600¶
-
MIN_CHUNK_SIZE= 8192¶
-
MAX_CHUNK_SIZE= 1048576¶
-
__init__(services)[source]¶ Initialize the DownloadManager using the given services object.
- Parameters
services (b2sdk.v1.Services) –
-
download_file_from_url(url, progress_listener=None, range_=None, encryption: Optional[b2sdk.encryption.setting.EncryptionSetting] = None) → b2sdk.transfer.inbound.downloaded_file.DownloadedFile[source]¶ - Parameters
url – url from which the file should be downloaded
progress_listener – where to notify about downloading progress
range – 2-element tuple containing data of http Range header
encryption (b2sdk.v1.EncryptionSetting) – encryption setting (
Noneif unknown)
-