@@ -103,7 +103,14 @@ def __init__(
103103 ) -> None :
104104 """
105105 client (DownloadAPIClient): A agent that implements the HeadObject and GetObject api.
106- downloader_options (DownloaderOptions, optional): optional.
106+ kwargs: Extra keyword arguments used to initialize the downloader.
107+ - part_size (int): The part size. Default value: 6 MiB.
108+ - parallel_num (int): The number of the download tasks in parallel. Default value: 3.
109+ - block_size (int): The block size is the number of bytes it should read into memory. Default value: 16 KiB.
110+ - use_temp_file (bool): Whether to use a temporary file when you download an object. A temporary file is used by default.
111+ - enable_checkpoint (bool): Whether to enable checkpoint. Defaults to False.
112+ - checkpoint_dir (str): The directory to store checkpoint.
113+ - verify_data (bool): Whether to verify data when the download is resumed. Defaults to False.
107114 """
108115 part_size = kwargs .get ('part_size' , defaults .DEFAULT_DOWNLOAD_PART_SIZE )
109116 parallel_num = kwargs .get ('parallel_num' , defaults .DEFAULT_DOWNLOAD_PARALLEL )
@@ -138,7 +145,14 @@ def download_file(
138145 Args:
139146 request (models.GetObjectRequest): the request parameters for the download operation.
140147 filepath (str): The path of a local file.
141-
148+ kwargs: Extra keyword arguments.
149+ - part_size (int): The part size.
150+ - parallel_num (int): The number of the download tasks in parallel.
151+ - block_size (int): The block size is the number of bytes it should read into memory.
152+ - use_temp_file (bool): Whether to use a temporary file when you download an object.
153+ - enable_checkpoint (bool): Whether to enable checkpoint.
154+ - checkpoint_dir (str): The directory to store checkpoint.
155+ - verify_data (bool): Whether to verify data when the download is resumed.
142156 Returns:
143157 DownloadResult: The result for the download operation.
144158 """
@@ -178,7 +192,10 @@ def download_to(
178192 Args:
179193 request (models.GetObjectRequest): the request parameters for the download operation.
180194 writer (IO[bytes]): writes the data into writer
181-
195+ kwargs: Extra keyword arguments.
196+ - part_size (int): The part size.
197+ - parallel_num (int): The number of the download tasks in parallel.
198+ - block_size (int): The block size is the number of bytes it should read into memory.
182199 Returns:
183200 DownloadResult: The result for the download operation.
184201 """
0 commit comments