eodash_catalog 0.0.35__py3-none-any.whl → 0.0.36__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.
Potentially problematic release.
This version of eodash_catalog might be problematic. Click here for more details.
- eodash_catalog/__about__.py +1 -1
- eodash_catalog/sh_endpoint.py +3 -4
- {eodash_catalog-0.0.35.dist-info → eodash_catalog-0.0.36.dist-info}/METADATA +1 -1
- {eodash_catalog-0.0.35.dist-info → eodash_catalog-0.0.36.dist-info}/RECORD +7 -7
- {eodash_catalog-0.0.35.dist-info → eodash_catalog-0.0.36.dist-info}/WHEEL +0 -0
- {eodash_catalog-0.0.35.dist-info → eodash_catalog-0.0.36.dist-info}/entry_points.txt +0 -0
- {eodash_catalog-0.0.35.dist-info → eodash_catalog-0.0.36.dist-info}/licenses/LICENSE.txt +0 -0
eodash_catalog/__about__.py
CHANGED
eodash_catalog/sh_endpoint.py
CHANGED
|
@@ -15,9 +15,9 @@ def get_SH_token(endpoint_config: dict) -> str:
|
|
|
15
15
|
if env_id := endpoint_config.get("CustomSHEnvId"):
|
|
16
16
|
client_id = os.getenv(f"SH_CLIENT_ID_{env_id}", "")
|
|
17
17
|
client_secret = os.getenv(f"SH_CLIENT_SECRET_{env_id}", "")
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
# 10 minutes before end of validity
|
|
19
|
+
safety_buffer_validity = _token_cache[client_id]["expires_at"] - (60 * 10)
|
|
20
|
+
if client_id in _token_cache and (safety_buffer_validity) > (time.time()):
|
|
21
21
|
return _token_cache[client_id]["access_token"]
|
|
22
22
|
# Create a session
|
|
23
23
|
client = BackendApplicationClient(client_id=client_id)
|
|
@@ -29,5 +29,4 @@ def get_SH_token(endpoint_config: dict) -> str:
|
|
|
29
29
|
)
|
|
30
30
|
access_token = token["access_token"]
|
|
31
31
|
_token_cache[client_id] = {"access_token": access_token, "expires_at": token["expires_at"]}
|
|
32
|
-
print("returning directly")
|
|
33
32
|
return access_token
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.36
|
|
4
4
|
Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
|
|
5
5
|
Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
eodash_catalog/__about__.py,sha256=
|
|
1
|
+
eodash_catalog/__about__.py,sha256=ZvI8Z-KTcpq5DLukULoS0cmTKFk8JeJK8R6ejONrZF4,138
|
|
2
2
|
eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
|
|
3
3
|
eodash_catalog/duration.py,sha256=B6XOZfvNU7SuqpxuVtT1kNKODoOQJXDI6mocvA_U1ik,10816
|
|
4
4
|
eodash_catalog/endpoints.py,sha256=9cSdB_IczNW9hzOJRrI5_qmgsn4snWvUszN6qtvxZn8,37749
|
|
5
5
|
eodash_catalog/generate_indicators.py,sha256=0IHhu_0yOUoUtLqiTsoYQ2IrTrq00yZme3UE6pC9PIU,19772
|
|
6
|
-
eodash_catalog/sh_endpoint.py,sha256=
|
|
6
|
+
eodash_catalog/sh_endpoint.py,sha256=cDCtyVvZDDY4lQfTpZDHVDM_9sfGrfkVqOOqZoyJYzw,1257
|
|
7
7
|
eodash_catalog/stac_handling.py,sha256=2iJwBbsBZIBqGWOdnpIfSug0SoOjbkutpSbWAeQRECU,17828
|
|
8
8
|
eodash_catalog/thumbnails.py,sha256=qZDcpQe80ki6lEMKYdZtSnnHH0PUpcoXTvU9bYdPlzU,2260
|
|
9
9
|
eodash_catalog/utils.py,sha256=YBB-cfS_Z4ErMAuBVizBQg18IMIxJb4amW1MfDGExg0,11666
|
|
10
|
-
eodash_catalog-0.0.
|
|
11
|
-
eodash_catalog-0.0.
|
|
12
|
-
eodash_catalog-0.0.
|
|
13
|
-
eodash_catalog-0.0.
|
|
14
|
-
eodash_catalog-0.0.
|
|
10
|
+
eodash_catalog-0.0.36.dist-info/METADATA,sha256=4ljlKb9UOf9HzSQzjKUCeigaeOCKx-LJkry0PlQiccI,3196
|
|
11
|
+
eodash_catalog-0.0.36.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
12
|
+
eodash_catalog-0.0.36.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
|
|
13
|
+
eodash_catalog-0.0.36.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
|
|
14
|
+
eodash_catalog-0.0.36.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|