eodag 4.0.0a3__py3-none-any.whl → 4.0.0a4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ import logging
22
22
  import os
23
23
  import re
24
24
  import tempfile
25
+ from datetime import datetime
25
26
  from typing import TYPE_CHECKING, Any, Optional, Union
26
27
 
27
28
  import requests
@@ -119,6 +120,8 @@ class EOProduct:
119
120
  filename: str
120
121
  #: Product search keyword arguments, stored during search
121
122
  search_kwargs: Any
123
+ #: Datetime for download next try
124
+ next_try: datetime
122
125
 
123
126
  def __init__(
124
127
  self, provider: str, properties: dict[str, Any], **kwargs: Any
@@ -428,7 +431,6 @@ class EOProduct:
428
431
  ssl_verify: Optional[bool] = None,
429
432
  auth: Optional[AuthBase] = None,
430
433
  ):
431
-
432
434
  """Download the quicklook image from the EOProduct's quicklook URL.
433
435
 
434
436
  This method performs an HTTP GET request to retrieve the quicklook image and saves it
@@ -528,7 +530,6 @@ class EOProduct:
528
530
  )
529
531
 
530
532
  if not os.path.isfile(quicklook_file):
531
-
532
533
  # progress bar init
533
534
  if progress_callback is None:
534
535
  progress_callback = ProgressCallback()
@@ -571,7 +572,6 @@ class EOProduct:
571
572
  quicklook_file, progress_callback, ssl_verify, auth
572
573
  )
573
574
  except RequestException as e:
574
-
575
575
  logger.debug(
576
576
  f"Error while getting resource with authentication. {e} \nTrying without authentication..."
577
577
  )