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.
- eodag/api/collection.py +8 -8
- eodag/api/core.py +199 -310
- eodag/api/product/_product.py +3 -3
- eodag/api/provider.py +990 -0
- eodag/cli.py +1 -3
- eodag/config.py +73 -444
- eodag/plugins/authentication/token.py +0 -1
- eodag/plugins/download/http.py +0 -1
- eodag/plugins/manager.py +24 -34
- eodag/resources/ext_collections.json +1 -1
- eodag/resources/ext_product_types.json +1 -1
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/METADATA +1 -1
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/RECORD +17 -16
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/WHEEL +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/entry_points.txt +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/licenses/LICENSE +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a4.dist-info}/top_level.txt +0 -0
eodag/api/product/_product.py
CHANGED
|
@@ -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
|
)
|