@@ -662,7 +662,7 @@ def download_request(
662662 ** kwargs : Unpack [DownloadConf ],
663663 ) -> os .PathLike :
664664 is_empty = True
665- chunk_iterator = self ._stream_download (
665+ chunk_iterator = self ._raw_stream_download (
666666 product , auth , progress_callback , ** kwargs
667667 )
668668 if fs_path is not None :
@@ -757,7 +757,7 @@ def _check_product_filename(self, product: EOProduct) -> str:
757757 filename += ext
758758 return filename
759759
760- def _stream_download_dict (
760+ def stream_download (
761761 self ,
762762 product : EOProduct ,
763763 auth : Optional [Union [AuthBase , S3ServiceResource ]] = None ,
@@ -797,7 +797,7 @@ def _stream_download_dict(
797797 try :
798798 assets_values = product .assets .get_values (kwargs .get ("asset" ))
799799 with executor :
800- assets_stream_list = self ._stream_download_assets (
800+ assets_stream_list = self ._raw_stream_download_assets (
801801 product ,
802802 executor ,
803803 auth ,
@@ -848,7 +848,7 @@ def _stream_download_dict(
848848 else :
849849 pass
850850
851- chunk_iterator = self ._stream_download (product , auth , None , ** kwargs )
851+ chunk_iterator = self ._raw_stream_download (product , auth , None , ** kwargs )
852852
853853 # start reading chunks to set product.headers
854854 try :
@@ -957,7 +957,7 @@ def order(
957957 product , auth
958958 )
959959
960- def _stream_download (
960+ def _raw_stream_download (
961961 self ,
962962 product : EOProduct ,
963963 auth : Optional [AuthBase ] = None ,
@@ -1070,7 +1070,7 @@ def _stream_download(
10701070 product .filename = filename
10711071 return product ._stream .iter_content (chunk_size = 64 * 1024 )
10721072
1073- def _stream_download_assets (
1073+ def _raw_stream_download_assets (
10741074 self ,
10751075 product : EOProduct ,
10761076 executor : ThreadPoolExecutor ,
@@ -1247,7 +1247,7 @@ def _download_assets(
12471247
12481248 assets_values = product .assets .get_values (kwargs .get ("asset" ))
12491249
1250- assets_stream_list = self ._stream_download_assets (
1250+ assets_stream_list = self ._raw_stream_download_assets (
12511251 product , executor , auth , progress_callback , assets_values , ** kwargs
12521252 )
12531253
@@ -1460,3 +1460,6 @@ def fetch_asset_size(asset: Asset) -> None:
14601460 [f .result () for f in as_completed (futures )]
14611461
14621462 return total_size
1463+
1464+
1465+ __all__ = ["HTTPDownload" ]
0 commit comments