stac-fastapi-elasticsearch 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.
@@ -106,7 +106,7 @@ post_request_model = create_post_request_model(search_extensions)
106
106
  api = StacApi(
107
107
  title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-elasticsearch"),
108
108
  description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-elasticsearch"),
109
- api_version=os.getenv("STAC_FASTAPI_VERSION", "5.0.0a0"),
109
+ api_version=os.getenv("STAC_FASTAPI_VERSION", "5.0.0a1"),
110
110
  settings=settings,
111
111
  extensions=extensions,
112
112
  client=CoreClient(
@@ -52,6 +52,10 @@ def _es_config() -> Dict[str, Any]:
52
52
  if http_compress:
53
53
  config["http_compress"] = True
54
54
 
55
+ # Handle authentication
56
+ if (u := os.getenv("ES_USER")) and (p := os.getenv("ES_PASS")):
57
+ config["http_auth"] = (u, p)
58
+
55
59
  # Explicitly exclude SSL settings when not using SSL
56
60
  if not use_ssl:
57
61
  return config
@@ -64,10 +68,6 @@ def _es_config() -> Dict[str, Any]:
64
68
  if config["verify_certs"]:
65
69
  config["ca_certs"] = os.getenv("CURL_CA_BUNDLE", certifi.where())
66
70
 
67
- # Handle authentication
68
- if (u := os.getenv("ES_USER")) and (p := os.getenv("ES_PASS")):
69
- config["http_auth"] = (u, p)
70
-
71
71
  return config
72
72
 
73
73
 
@@ -1,2 +1,2 @@
1
1
  """library version."""
2
- __version__ = "5.0.0a0"
2
+ __version__ = "5.0.0a1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi-elasticsearch
3
- Version: 5.0.0a0
3
+ Version: 5.0.0a1
4
4
  Summary: An implementation of STAC API based on the FastAPI framework with both Elasticsearch and Opensearch.
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.0a0
19
- Requires-Dist: sfeos-helpers==5.0.0a0
18
+ Requires-Dist: stac-fastapi-core==5.0.0a1
19
+ Requires-Dist: sfeos-helpers==5.0.0a1
20
20
  Requires-Dist: elasticsearch[async]~=8.18.0
21
21
  Requires-Dist: uvicorn~=0.23.0
22
22
  Requires-Dist: starlette<0.36.0,>=0.35.0
@@ -0,0 +1,10 @@
1
+ stac_fastapi/elasticsearch/__init__.py,sha256=w_MZutYLreNV372sCuO46bPb0TngmPs4u8737ueS0wE,31
2
+ stac_fastapi/elasticsearch/app.py,sha256=uuBk3Vg8vdl15yIQCFCxJ8UfFtaKjMvmXXULMd8Lw0g,5080
3
+ stac_fastapi/elasticsearch/config.py,sha256=PKSowbXmSryMj0Oq15XJduyPL2c_NlDkewXnR1DFP2o,5181
4
+ stac_fastapi/elasticsearch/database_logic.py,sha256=-qvrOTyoVWe4Ua4lu5Fjq1NmrY_fj_3Emt1HV8i5Dsw,48248
5
+ stac_fastapi/elasticsearch/version.py,sha256=MQ4i7PSJnhrL3abG-m_vOwI3ksvRoHcs0eiBtxywE3E,47
6
+ stac_fastapi_elasticsearch-5.0.0a1.dist-info/METADATA,sha256=9sB79eLh3KasJb7ykxdvhHvB2w-peD1_N6Z4wltzJmA,31992
7
+ stac_fastapi_elasticsearch-5.0.0a1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
8
+ stac_fastapi_elasticsearch-5.0.0a1.dist-info/entry_points.txt,sha256=aCKixki0LpUl64UPsPMtiNvfdyq-QsTCxVjJ54VF6Jk,82
9
+ stac_fastapi_elasticsearch-5.0.0a1.dist-info/top_level.txt,sha256=vqn-D9-HsRPTTxy0Vk_KkDmTiMES4owwBQ3ydSZYb2s,13
10
+ stac_fastapi_elasticsearch-5.0.0a1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- stac_fastapi/elasticsearch/__init__.py,sha256=w_MZutYLreNV372sCuO46bPb0TngmPs4u8737ueS0wE,31
2
- stac_fastapi/elasticsearch/app.py,sha256=gZEpPzyvijDsrb4l8WNHBSp328CopqTqhkyCLn9g6yQ,5080
3
- stac_fastapi/elasticsearch/config.py,sha256=DPPnC5liO3-nVHHVbifPaal_HIUpeJQRdRQg9GzHULc,5181
4
- stac_fastapi/elasticsearch/database_logic.py,sha256=-qvrOTyoVWe4Ua4lu5Fjq1NmrY_fj_3Emt1HV8i5Dsw,48248
5
- stac_fastapi/elasticsearch/version.py,sha256=c2gZCryeGGpiwcZ3c6UrJnUyJqZkYSBi5EhoLK_wRU0,47
6
- stac_fastapi_elasticsearch-5.0.0a0.dist-info/METADATA,sha256=E0EGy-IEZPrbzvdpCX6ovPcg0uWzhw5_H0YB99XvBHk,31992
7
- stac_fastapi_elasticsearch-5.0.0a0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
8
- stac_fastapi_elasticsearch-5.0.0a0.dist-info/entry_points.txt,sha256=aCKixki0LpUl64UPsPMtiNvfdyq-QsTCxVjJ54VF6Jk,82
9
- stac_fastapi_elasticsearch-5.0.0a0.dist-info/top_level.txt,sha256=vqn-D9-HsRPTTxy0Vk_KkDmTiMES4owwBQ3ydSZYb2s,13
10
- stac_fastapi_elasticsearch-5.0.0a0.dist-info/RECORD,,