
Offset is 0 index based so the firstĮnd_bytes ( int) – End byte offset (non-inclusive) for the rangeĭownload. Start_bytes ( int) – Start byte offset (inclusive) for the rangeĭownload. Iterator of bytes download_object_range ( obj, destination_path, start_bytes, end_bytes = None, overwrite_existing = False, delete_on_failure = True ) ¶ Obj ( ) – Object instanceĬhunk_size ( int) – Optional chunk size (in bytes). Return a iterator which yields object data. True if an object has been successfully downloaded, Falseīool download_object_as_stream ( obj, chunk_size = None ) ¶ Overwrite_existing ( bool) – True to overwrite an existing file,ĭelete_on_failure ( bool) – True to delete a partially downloaded file if Obj ( ) – Object instance.ĭestination_path ( str) – Full path to a file or a directory where the Returnsīool download_object ( obj, destination_path, overwrite_existing = False, delete_on_failure = True ) ¶ĭownload an object to the specified destination path. delete_container ( container ) ¶Ĭontainer ( ) – Container instance Returns
Backblaze download drivers#
Only used by drivers whichĪlias of _b2.BackblazeB2Connection create_container ( container_name, ex_type = 'allPrivate' ) ¶Ĭontainer_name ( str) – Container name. Port ( int) – Override port used for connections.Īpi_version ( str) – Optional API version. Host ( str) – Override hostname used for connections. Only support HTTPS, and it is on by default. Secure ( bool) – Whether to use HTTPS or HTTP. Secret ( str) – Secret password to be used (required) Key ( str) – API key or username to be used (required) BackblazeB2StorageDriver ( key, secret = None, secure = True, host = None, port = None, api_version = None, region = None, ** kwargs ) ¶ Parameters BACKBLAZE_B2 ) driver = cls ( key_id, application_key ) API Docs ¶ class _b2. From import Provider from import get_driver key_id = "XXXXXX" application_key = "YYYYYY" cls = get_driver ( Provider.
