stac-fastapi-opensearch 5.0.0a0__py3-none-any.whl → 5.0.0a1__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.
- stac_fastapi/opensearch/app.py +1 -1
- stac_fastapi/opensearch/config.py +12 -12
- stac_fastapi/opensearch/version.py +1 -1
- {stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/METADATA +3 -3
- stac_fastapi_opensearch-5.0.0a1.dist-info/RECORD +10 -0
- stac_fastapi_opensearch-5.0.0a0.dist-info/RECORD +0 -10
- {stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/WHEEL +0 -0
- {stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/entry_points.txt +0 -0
- {stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/top_level.txt +0 -0
stac_fastapi/opensearch/app.py
CHANGED
|
@@ -107,7 +107,7 @@ post_request_model = create_post_request_model(search_extensions)
|
|
|
107
107
|
api = StacApi(
|
|
108
108
|
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-opensearch"),
|
|
109
109
|
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-opensearch"),
|
|
110
|
-
api_version=os.getenv("STAC_FASTAPI_VERSION", "5.0.
|
|
110
|
+
api_version=os.getenv("STAC_FASTAPI_VERSION", "5.0.0a1"),
|
|
111
111
|
settings=settings,
|
|
112
112
|
extensions=extensions,
|
|
113
113
|
client=CoreClient(
|
|
@@ -40,18 +40,6 @@ def _es_config() -> Dict[str, Any]:
|
|
|
40
40
|
if http_compress:
|
|
41
41
|
config["http_compress"] = True
|
|
42
42
|
|
|
43
|
-
# Explicitly exclude SSL settings when not using SSL
|
|
44
|
-
if not use_ssl:
|
|
45
|
-
return config
|
|
46
|
-
|
|
47
|
-
# Include SSL settings if using https
|
|
48
|
-
config["ssl_version"] = ssl.PROTOCOL_SSLv23
|
|
49
|
-
config["verify_certs"] = get_bool_env("ES_VERIFY_CERTS", default=True)
|
|
50
|
-
|
|
51
|
-
# Include CA Certificates if verifying certs
|
|
52
|
-
if config["verify_certs"]:
|
|
53
|
-
config["ca_certs"] = os.getenv("CURL_CA_BUNDLE", certifi.where())
|
|
54
|
-
|
|
55
43
|
# Handle authentication
|
|
56
44
|
if (u := os.getenv("ES_USER")) and (p := os.getenv("ES_PASS")):
|
|
57
45
|
config["http_auth"] = (u, p)
|
|
@@ -65,6 +53,18 @@ def _es_config() -> Dict[str, Any]:
|
|
|
65
53
|
|
|
66
54
|
config["headers"] = headers
|
|
67
55
|
|
|
56
|
+
# Explicitly exclude SSL settings when not using SSL
|
|
57
|
+
if not use_ssl:
|
|
58
|
+
return config
|
|
59
|
+
|
|
60
|
+
# Include SSL settings if using https
|
|
61
|
+
config["ssl_version"] = ssl.PROTOCOL_SSLv23
|
|
62
|
+
config["verify_certs"] = get_bool_env("ES_VERIFY_CERTS", default=True)
|
|
63
|
+
|
|
64
|
+
# Include CA Certificates if verifying certs
|
|
65
|
+
if config["verify_certs"]:
|
|
66
|
+
config["ca_certs"] = os.getenv("CURL_CA_BUNDLE", certifi.where())
|
|
67
|
+
|
|
68
68
|
return config
|
|
69
69
|
|
|
70
70
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""library version."""
|
|
2
|
-
__version__ = "5.0.
|
|
2
|
+
__version__ = "5.0.0a1"
|
{stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stac-fastapi-opensearch
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.0a1
|
|
4
4
|
Summary: Opensearch stac-fastapi backend.
|
|
5
5
|
Home-page: https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
|
|
6
6
|
License: MIT
|
|
@@ -15,8 +15,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
15
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
16
|
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: stac-fastapi-core==5.0.
|
|
19
|
-
Requires-Dist: sfeos-helpers==5.0.
|
|
18
|
+
Requires-Dist: stac-fastapi-core==5.0.0a1
|
|
19
|
+
Requires-Dist: sfeos-helpers==5.0.0a1
|
|
20
20
|
Requires-Dist: opensearch-py~=2.8.0
|
|
21
21
|
Requires-Dist: opensearch-py[async]~=2.8.0
|
|
22
22
|
Requires-Dist: uvicorn~=0.23.0
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
stac_fastapi/opensearch/__init__.py,sha256=iJWMUgn7mUvmuPQSO_FlyhJ5eDdbbfmGv1qnFOX5-qk,28
|
|
2
|
+
stac_fastapi/opensearch/app.py,sha256=LVXmhC2AZhiEhlGYWG29QBGfFP4y7PTYG0Pn0vKiISg,5060
|
|
3
|
+
stac_fastapi/opensearch/config.py,sha256=HfaUvcQM2kGNjypdUYFUcrMmBUPu3pG31mvNRESeR_A,5061
|
|
4
|
+
stac_fastapi/opensearch/database_logic.py,sha256=hhUMCzhpUMwH8HIIQIXFQsAZmbpt3_VDFWVBrigIXTM,46304
|
|
5
|
+
stac_fastapi/opensearch/version.py,sha256=MQ4i7PSJnhrL3abG-m_vOwI3ksvRoHcs0eiBtxywE3E,47
|
|
6
|
+
stac_fastapi_opensearch-5.0.0a1.dist-info/METADATA,sha256=rWA3nfQEeXCFy6h7AB6tM_wetrvVU_U5jf5d4HT-74g,31956
|
|
7
|
+
stac_fastapi_opensearch-5.0.0a1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
8
|
+
stac_fastapi_opensearch-5.0.0a1.dist-info/entry_points.txt,sha256=zjZ0Xsr9BUNJqMkdPpl6zEIUykv1uFdJtNELFRChp0w,76
|
|
9
|
+
stac_fastapi_opensearch-5.0.0a1.dist-info/top_level.txt,sha256=vqn-D9-HsRPTTxy0Vk_KkDmTiMES4owwBQ3ydSZYb2s,13
|
|
10
|
+
stac_fastapi_opensearch-5.0.0a1.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
stac_fastapi/opensearch/__init__.py,sha256=iJWMUgn7mUvmuPQSO_FlyhJ5eDdbbfmGv1qnFOX5-qk,28
|
|
2
|
-
stac_fastapi/opensearch/app.py,sha256=u0hQveoGBz2otwkil-83UdscVn8O_yJYYopNSP2W3Xg,5060
|
|
3
|
-
stac_fastapi/opensearch/config.py,sha256=PZTd8dV-O6fo6Yxc_hVnUqQi-B-HL4yVf15qM1IPNVE,5061
|
|
4
|
-
stac_fastapi/opensearch/database_logic.py,sha256=hhUMCzhpUMwH8HIIQIXFQsAZmbpt3_VDFWVBrigIXTM,46304
|
|
5
|
-
stac_fastapi/opensearch/version.py,sha256=c2gZCryeGGpiwcZ3c6UrJnUyJqZkYSBi5EhoLK_wRU0,47
|
|
6
|
-
stac_fastapi_opensearch-5.0.0a0.dist-info/METADATA,sha256=MSG3uviL9JUX7duz5c4WWppogiePaE7Ixqz7CWjiToY,31956
|
|
7
|
-
stac_fastapi_opensearch-5.0.0a0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
8
|
-
stac_fastapi_opensearch-5.0.0a0.dist-info/entry_points.txt,sha256=zjZ0Xsr9BUNJqMkdPpl6zEIUykv1uFdJtNELFRChp0w,76
|
|
9
|
-
stac_fastapi_opensearch-5.0.0a0.dist-info/top_level.txt,sha256=vqn-D9-HsRPTTxy0Vk_KkDmTiMES4owwBQ3ydSZYb2s,13
|
|
10
|
-
stac_fastapi_opensearch-5.0.0a0.dist-info/RECORD,,
|
{stac_fastapi_opensearch-5.0.0a0.dist-info → stac_fastapi_opensearch-5.0.0a1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|