eodag 4.0.0a3__py3-none-any.whl → 4.0.0a5__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 +216 -313
- eodag/api/product/_product.py +28 -6
- eodag/api/provider.py +990 -0
- eodag/cli.py +11 -4
- eodag/config.py +73 -444
- eodag/plugins/apis/ecmwf.py +3 -24
- eodag/plugins/apis/usgs.py +3 -24
- eodag/plugins/authentication/token.py +0 -1
- eodag/plugins/download/aws.py +83 -44
- eodag/plugins/download/base.py +117 -41
- eodag/plugins/download/http.py +84 -56
- eodag/plugins/manager.py +24 -34
- eodag/resources/ext_collections.json +1 -1
- eodag/resources/ext_product_types.json +1 -1
- eodag/resources/providers.yml +2 -0
- eodag/utils/s3.py +4 -4
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/METADATA +1 -1
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/RECORD +23 -22
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/WHEEL +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/entry_points.txt +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/licenses/LICENSE +0 -0
- {eodag-4.0.0a3.dist-info → eodag-4.0.0a5.dist-info}/top_level.txt +0 -0
eodag/resources/providers.yml
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
usgs:productId: '$.id'
|
|
50
50
|
extract: True
|
|
51
51
|
order_enabled: true
|
|
52
|
+
max_workers: 2
|
|
52
53
|
products:
|
|
53
54
|
# datasets list http://kapadia.github.io/usgs/_sources/reference/catalog/ee.txt may be outdated
|
|
54
55
|
# see also https://dds.cr.usgs.gov/ee-data/coveragemaps/shp/ee/
|
|
@@ -2558,6 +2559,7 @@
|
|
|
2558
2559
|
extract: true
|
|
2559
2560
|
order_enabled: false
|
|
2560
2561
|
archive_depth: 2
|
|
2562
|
+
max_workers: 4
|
|
2561
2563
|
ssl_verify: true
|
|
2562
2564
|
auth: !plugin
|
|
2563
2565
|
type: KeycloakOIDCPasswordAuth
|
eodag/utils/s3.py
CHANGED
|
@@ -391,7 +391,7 @@ def stream_download_from_s3(
|
|
|
391
391
|
compress: Literal["zip", "raw", "auto"] = "auto",
|
|
392
392
|
zip_filename: str = "archive",
|
|
393
393
|
range_size: int = 1024**2 * 8,
|
|
394
|
-
|
|
394
|
+
provider_max_workers: Optional[int] = None,
|
|
395
395
|
) -> StreamResponse:
|
|
396
396
|
"""
|
|
397
397
|
Stream data from one or more S3 objects in chunks, with support for global byte ranges.
|
|
@@ -431,7 +431,7 @@ def stream_download_from_s3(
|
|
|
431
431
|
Only used when creating ZIP archives.
|
|
432
432
|
:param range_size: Size of each download chunk in bytes. Larger chunks reduce
|
|
433
433
|
request overhead but use more memory. Default: 8MB.
|
|
434
|
-
:param
|
|
434
|
+
:param provider_max_workers: (optional) Maximum number of concurrent download threads of the provider used.
|
|
435
435
|
Higher values improve throughput for multiple ranges.
|
|
436
436
|
:return: StreamResponse object containing:
|
|
437
437
|
|
|
@@ -480,7 +480,7 @@ def stream_download_from_s3(
|
|
|
480
480
|
pass
|
|
481
481
|
"""
|
|
482
482
|
|
|
483
|
-
executor = ThreadPoolExecutor(max_workers=
|
|
483
|
+
executor = ThreadPoolExecutor(max_workers=provider_max_workers)
|
|
484
484
|
|
|
485
485
|
# Prepare all files
|
|
486
486
|
offset = 0
|
|
@@ -596,7 +596,7 @@ def update_assets_from_s3(
|
|
|
596
596
|
def open_s3_zipped_object(
|
|
597
597
|
bucket_name: str,
|
|
598
598
|
key_name: str,
|
|
599
|
-
s3_client,
|
|
599
|
+
s3_client: S3Client,
|
|
600
600
|
zip_size: Optional[int] = None,
|
|
601
601
|
partial: bool = True,
|
|
602
602
|
) -> tuple[ZipFile, bytes]:
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
eodag/__init__.py,sha256=vS9nq3ZOcdlHxCakeRqCV4nm8q3r7ZKr-p7RQg0gatg,1627
|
|
2
|
-
eodag/cli.py,sha256=
|
|
3
|
-
eodag/config.py,sha256=
|
|
2
|
+
eodag/cli.py,sha256=QZqnhopBdPasNWdlti7n2VQ8sYylUoWIKT7_P1ev-pw,22340
|
|
3
|
+
eodag/config.py,sha256=ZdWE4rZCcR8OX5jGv7zKEQ4CgH5bNk_PpNGe8HlhjR4,35054
|
|
4
4
|
eodag/crunch.py,sha256=fLVAPGVPw31N_DrnFk4gkCpQZLMY8oBhK6NUSYmdr24,1099
|
|
5
5
|
eodag/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
eodag/api/__init__.py,sha256=ytr30NUVmEtmJTsp3QCwkCIhS1nF6UlFCv0vmySHN7g,735
|
|
7
|
-
eodag/api/collection.py,sha256=
|
|
8
|
-
eodag/api/core.py,sha256=
|
|
7
|
+
eodag/api/collection.py,sha256=ZEKTB4yKJAIQfjAFkhHZ76Vw-KQ9qPAmpzkZqJ4KGUU,13804
|
|
8
|
+
eodag/api/core.py,sha256=KJWj_HRmZpMfrjvzMgLVLO4SwXrirGJfPp9rRHIo6J4,103037
|
|
9
|
+
eodag/api/provider.py,sha256=ZvkmJNYRCcYMP18X5KLSVhXZTvG1gkltfah1OA4LV-8,37279
|
|
9
10
|
eodag/api/search_result.py,sha256=LGWIQgbhQF5Lz489vcvalb2VsYtplyzUXGWMqduP0uc,21107
|
|
10
11
|
eodag/api/product/__init__.py,sha256=6-RXKAw-sZVNU-7KjpmSqLc35dfc0V42wI5GqIzH2QA,2501
|
|
11
12
|
eodag/api/product/_assets.py,sha256=9bWIe_SYvsQO-q_lQFd7SxhUIWv7feze2-wnXOe8hhs,7570
|
|
12
|
-
eodag/api/product/_product.py,sha256=
|
|
13
|
+
eodag/api/product/_product.py,sha256=CdoQG7SuX-lNfd4Ob3M9ET7jdNSovEekS5_Jq0AmIao,28456
|
|
13
14
|
eodag/api/product/metadata_mapping.py,sha256=OhB5JhyMLwCrXYJbdk2Nep0Kd-lFeiCWLtw1pa3XukU,76821
|
|
14
15
|
eodag/api/product/drivers/__init__.py,sha256=v85lXHsfrkn59uyMgConb5ZY9acCCx95srdsh_wFIlM,1998
|
|
15
16
|
eodag/api/product/drivers/base.py,sha256=MvaXicICn9DxXsaJuK34nPM3__TksstZXSVfABcINAc,2776
|
|
@@ -18,11 +19,11 @@ eodag/api/product/drivers/sentinel1.py,sha256=xpvhOvVhpuwVihPMo_q79VI67ru-FqKtbR
|
|
|
18
19
|
eodag/api/product/drivers/sentinel2.py,sha256=dMfIrcwF4h8KoyUj94yPUhRiN7FIef4mTzfbkkhLIc8,3124
|
|
19
20
|
eodag/plugins/__init__.py,sha256=KQkD5aVwb9I6C-Rmi5ABEG1-j8w5FP1zKN12vagsT9Y,739
|
|
20
21
|
eodag/plugins/base.py,sha256=8Us6InkQu59Ya0Ne8se2Q6ZtU85IpCpcQqO9Z2ECDWI,2746
|
|
21
|
-
eodag/plugins/manager.py,sha256=
|
|
22
|
+
eodag/plugins/manager.py,sha256=4annSLfT6N3o-japomvIUCTpDXfMgzfhBkvHVSKbVf0,19748
|
|
22
23
|
eodag/plugins/apis/__init__.py,sha256=PyY4f7P2iu3MkLPnw5eOrVew2fuavbBL3Asci3Ulwoo,744
|
|
23
24
|
eodag/plugins/apis/base.py,sha256=PZwAg0uINSEQcHSzTgU9xSAb-WaGMbmDL-jhrmybtLQ,2814
|
|
24
|
-
eodag/plugins/apis/ecmwf.py,sha256=
|
|
25
|
-
eodag/plugins/apis/usgs.py,sha256=
|
|
25
|
+
eodag/plugins/apis/ecmwf.py,sha256=qjELC_rwSY3Q3aZbwmJ8-eBq9FVZDt4uWdjK77eB-34,11075
|
|
26
|
+
eodag/plugins/apis/usgs.py,sha256=e8QFXg3zqFyMx6R3-gChJzWjUNZ65VULLsrOTqKXwLM,19338
|
|
26
27
|
eodag/plugins/authentication/__init__.py,sha256=_LVw42Bb1IhGAZH5xHRaS4b1iFoF9e27KDZOyoSoJHY,1039
|
|
27
28
|
eodag/plugins/authentication/aws_auth.py,sha256=A0sr5mVmCkAwCldlGSGFcZqnthusbcB52THthja77cw,12651
|
|
28
29
|
eodag/plugins/authentication/base.py,sha256=wp-OI0G4DbUFykuehvyh4IJLAJyicyKiIH9k5z3W7Mo,3506
|
|
@@ -32,7 +33,7 @@ eodag/plugins/authentication/keycloak.py,sha256=m5c6Os_T8UGfdXS9SemhuUBhwsC4foxm
|
|
|
32
33
|
eodag/plugins/authentication/openid_connect.py,sha256=lj-9RPz2BADU-1ckawLmuSi3TSexABsDDPCHLp8Frsc,27084
|
|
33
34
|
eodag/plugins/authentication/qsauth.py,sha256=bkepO_sFRIhYm3Dzecx3VJP0Ap37vUuJSRmEY8HrV1U,3947
|
|
34
35
|
eodag/plugins/authentication/sas_auth.py,sha256=-ye_Bgarni91V7B7XWzMyJwekFhujyRbw1seTa1Xi8w,5777
|
|
35
|
-
eodag/plugins/authentication/token.py,sha256=
|
|
36
|
+
eodag/plugins/authentication/token.py,sha256=k_siRP3qN16a4r396_dJbP5DCz1I9kiwXhbSO6OxCxE,15797
|
|
36
37
|
eodag/plugins/authentication/token_exchange.py,sha256=raFIN8UnO9MpqQukDJg4Pog-LJLzq8Bk54_6k9cCwFc,4963
|
|
37
38
|
eodag/plugins/crunch/__init__.py,sha256=58D7kJhEpHJWobIKaNFPynfbSqAWgS90BiHzitqS5Ds,746
|
|
38
39
|
eodag/plugins/crunch/base.py,sha256=XW4HISgR0UswiEZmE4t42HxnSxknZBtVpuK8XVLYHzU,1415
|
|
@@ -42,9 +43,9 @@ eodag/plugins/crunch/filter_latest_tpl_name.py,sha256=Aau0RMBRCblVL2kapEaV0SMZXd
|
|
|
42
43
|
eodag/plugins/crunch/filter_overlap.py,sha256=tU3h15jyfePOQPgGvowHFm2ZuckEbAo6lgLQNaPiJ2Q,7142
|
|
43
44
|
eodag/plugins/crunch/filter_property.py,sha256=2BKb7wxw1Yi2NTtnPCBtdZ-caJXxlVUUS2ps4LHXOMI,3187
|
|
44
45
|
eodag/plugins/download/__init__.py,sha256=zqszaeNgYP0YHlZDkLMf6odcwNw0KrAahGpcA-l0kAw,740
|
|
45
|
-
eodag/plugins/download/aws.py,sha256=
|
|
46
|
-
eodag/plugins/download/base.py,sha256
|
|
47
|
-
eodag/plugins/download/http.py,sha256=
|
|
46
|
+
eodag/plugins/download/aws.py,sha256=n3C3XZl-wFdCzsSB-OuDem985iFPVCnfAy4SWUjOkj8,48653
|
|
47
|
+
eodag/plugins/download/base.py,sha256=--30euISg80V_STkwRUhg6ocvQnQuSWJwlnh5FMv8ts,34504
|
|
48
|
+
eodag/plugins/download/http.py,sha256=DB46ff8UvXXOykrGef3qXWar5NtXqWjdswdlYvf3Nwk,59792
|
|
48
49
|
eodag/plugins/search/__init__.py,sha256=z_OD0bIloltQIJ9D0-pLC6o6nT0VmX2PRtMn_nLwWDQ,2174
|
|
49
50
|
eodag/plugins/search/base.py,sha256=yBmfca1EcR8c8pDD0GLnyZkU1UQ_8RNh1X8xqV-gHRQ,22235
|
|
50
51
|
eodag/plugins/search/build_search_result.py,sha256=4QZKXEBj5n1EE0BGciLfApSEYxxk-2srlVrq27lL1hg,62934
|
|
@@ -55,10 +56,10 @@ eodag/plugins/search/qssearch.py,sha256=W3g9J8xhnKZn8ksygBKzFXx0xUdIILlDvB-ePLEG
|
|
|
55
56
|
eodag/plugins/search/stac_list_assets.py,sha256=OS2E13w2OVcPUearXRzp4EfvibtmUz6l8okpAMNH-sA,3442
|
|
56
57
|
eodag/plugins/search/static_stac_search.py,sha256=zQc51c0VI52gt4eKF-yUC-1xsVIM4XKB96ZKazhtCjU,10379
|
|
57
58
|
eodag/resources/collections.yml,sha256=0JZr5y8V8QlB1MGqGzs5-Pmrk1ZYkEBlS3VYrg22Npc,473536
|
|
58
|
-
eodag/resources/ext_collections.json,sha256=
|
|
59
|
-
eodag/resources/ext_product_types.json,sha256=
|
|
59
|
+
eodag/resources/ext_collections.json,sha256=_HLFBMx6jSaFG2ZYAbTqSZUr9Rf87tQgLd8Ibad4khc,2587896
|
|
60
|
+
eodag/resources/ext_product_types.json,sha256=uNhgmppM6ZrxPSWWfR1rANavy1f88stFORElk-WkCxA,2607329
|
|
60
61
|
eodag/resources/locations_conf_template.yml,sha256=_eBv-QKHYMIKhY0b0kp4Ee33RsayxN8LWH3kDXxfFSk,986
|
|
61
|
-
eodag/resources/providers.yml,sha256=
|
|
62
|
+
eodag/resources/providers.yml,sha256=yBz5S-E5MR_zdp5yTGbkQ6I9Tk9Kax_Pdk0AstggUqM,237920
|
|
62
63
|
eodag/resources/stac_provider.yml,sha256=RNhFNhv7593VkY2od-LQgUBdIO1WXL1Rko7UyjLaxFY,4648
|
|
63
64
|
eodag/resources/user_conf_template.yml,sha256=aHSiscSQ3B4Dd18709iQAX7tFrkMufRC1a9akcNVVTs,7541
|
|
64
65
|
eodag/resources/shp/ne_110m_admin_0_map_units.VERSION.txt,sha256=CHSo_jbv-4d4D0MYRbWn2FvmV_K9mYzo7qznF4YNO3g,7
|
|
@@ -83,11 +84,11 @@ eodag/utils/logging.py,sha256=KoMsyS1f6O1hr_SMDOIxvt842mOJgmu_yLUk0-0EKFs,3507
|
|
|
83
84
|
eodag/utils/notebook.py,sha256=AUxtayvu26qYf3x3Eu3ujRl1XDgy24EfQaETbqmXSZw,2703
|
|
84
85
|
eodag/utils/repr.py,sha256=72BIKFq07aU4YrQVJJX-AADdWXAhJqC4LXGmkbCo1kA,5537
|
|
85
86
|
eodag/utils/requests.py,sha256=avNHKrOZ7Kp6lUA7u4kqupIth9MoirLzDsMrrmQDt4s,4560
|
|
86
|
-
eodag/utils/s3.py,sha256=
|
|
87
|
+
eodag/utils/s3.py,sha256=Yu-yF0ebIm03XOm94p4SkDi2WzU_ZTv4kVJ3VGBo-Z4,30145
|
|
87
88
|
eodag/utils/stac_reader.py,sha256=8r6amio5EtwGF9iu9zHaGDz4oUPKKeXRuyTzPNakrO4,9406
|
|
88
|
-
eodag-4.0.
|
|
89
|
-
eodag-4.0.
|
|
90
|
-
eodag-4.0.
|
|
91
|
-
eodag-4.0.
|
|
92
|
-
eodag-4.0.
|
|
93
|
-
eodag-4.0.
|
|
89
|
+
eodag-4.0.0a5.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
|
|
90
|
+
eodag-4.0.0a5.dist-info/METADATA,sha256=NccWfNN7f57un7W4xCpEBhpt2UWQFYSjNImlVg9uvx8,12739
|
|
91
|
+
eodag-4.0.0a5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
92
|
+
eodag-4.0.0a5.dist-info/entry_points.txt,sha256=atMIh-Q4hRsOdw1_778mDIhWFHQJigEo3x-0fMqhqLE,2254
|
|
93
|
+
eodag-4.0.0a5.dist-info/top_level.txt,sha256=025IMTmVe5eDjIPP4KEFQKespOPMQdne4U4jOy8nftM,6
|
|
94
|
+
eodag-4.0.0a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|