stac-fastapi-elasticsearch 6.2.0__tar.gz → 6.2.1__tar.gz
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_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/PKG-INFO +27 -2
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/README.md +1 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/setup.py +2 -2
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi/elasticsearch/app.py +1 -1
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi/elasticsearch/database_logic.py +6 -2
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi/elasticsearch/version.py +1 -1
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/PKG-INFO +28 -3
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/requires.txt +2 -2
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/top_level.txt +1 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/setup.cfg +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi/elasticsearch/__init__.py +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi/elasticsearch/config.py +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/SOURCES.txt +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/dependency_links.txt +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/entry_points.txt +0 -0
- {stac_fastapi_elasticsearch-6.2.0 → stac_fastapi_elasticsearch-6.2.1}/stac_fastapi_elasticsearch.egg-info/not-zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: stac_fastapi_elasticsearch
|
|
3
|
-
Version: 6.2.
|
|
3
|
+
Version: 6.2.1
|
|
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,9 +15,33 @@ 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==6.2.1
|
|
19
|
+
Requires-Dist: sfeos-helpers==6.2.1
|
|
20
|
+
Requires-Dist: elasticsearch[async]~=8.18.0
|
|
21
|
+
Requires-Dist: uvicorn~=0.23.0
|
|
22
|
+
Requires-Dist: starlette<0.36.0,>=0.35.0
|
|
18
23
|
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest~=7.0.0; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-cov~=4.0.0; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-asyncio~=0.21.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pre-commit~=3.0.0; extra == "dev"
|
|
28
|
+
Requires-Dist: ciso8601~=2.3.0; extra == "dev"
|
|
29
|
+
Requires-Dist: httpx<0.28.0,>=0.24.0; extra == "dev"
|
|
19
30
|
Provides-Extra: docs
|
|
31
|
+
Requires-Dist: mkdocs~=1.4.0; extra == "docs"
|
|
32
|
+
Requires-Dist: mkdocs-material~=9.0.0; extra == "docs"
|
|
33
|
+
Requires-Dist: pdocs~=1.2.0; extra == "docs"
|
|
20
34
|
Provides-Extra: server
|
|
35
|
+
Requires-Dist: uvicorn[standard]~=0.23.0; extra == "server"
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: license
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
21
45
|
|
|
22
46
|
# stac-fastapi-elasticsearch-opensearch
|
|
23
47
|
|
|
@@ -248,6 +272,7 @@ You can customize additional settings in your `.env` file:
|
|
|
248
272
|
| `RAISE_ON_BULK_ERROR` | Controls whether bulk insert operations raise exceptions on errors. If set to `true`, the operation will stop and raise an exception when an error occurs. If set to `false`, errors will be logged, and the operation will continue. **Note:** STAC Item and ItemCollection validation errors will always raise, regardless of this flag. | `false` | Optional |
|
|
249
273
|
| `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
|
|
250
274
|
| `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
|
|
275
|
+
| `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
|
|
251
276
|
|
|
252
277
|
> [!NOTE]
|
|
253
278
|
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
|
|
@@ -227,6 +227,7 @@ You can customize additional settings in your `.env` file:
|
|
|
227
227
|
| `RAISE_ON_BULK_ERROR` | Controls whether bulk insert operations raise exceptions on errors. If set to `true`, the operation will stop and raise an exception when an error occurs. If set to `false`, errors will be logged, and the operation will continue. **Note:** STAC Item and ItemCollection validation errors will always raise, regardless of this flag. | `false` | Optional |
|
|
228
228
|
| `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
|
|
229
229
|
| `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
|
|
230
|
+
| `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
|
|
230
231
|
|
|
231
232
|
> [!NOTE]
|
|
232
233
|
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
|
|
@@ -6,8 +6,8 @@ with open("README.md") as f:
|
|
|
6
6
|
desc = f.read()
|
|
7
7
|
|
|
8
8
|
install_requires = [
|
|
9
|
-
"stac-fastapi-core==6.2.
|
|
10
|
-
"sfeos-helpers==6.2.
|
|
9
|
+
"stac-fastapi-core==6.2.1",
|
|
10
|
+
"sfeos-helpers==6.2.1",
|
|
11
11
|
"elasticsearch[async]~=8.18.0",
|
|
12
12
|
"uvicorn~=0.23.0",
|
|
13
13
|
"starlette>=0.35.0,<0.36.0",
|
|
@@ -117,7 +117,7 @@ post_request_model = create_post_request_model(search_extensions)
|
|
|
117
117
|
app_config = {
|
|
118
118
|
"title": os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-elasticsearch"),
|
|
119
119
|
"description": os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-elasticsearch"),
|
|
120
|
-
"api_version": os.getenv("STAC_FASTAPI_VERSION", "6.2.
|
|
120
|
+
"api_version": os.getenv("STAC_FASTAPI_VERSION", "6.2.1"),
|
|
121
121
|
"settings": settings,
|
|
122
122
|
"extensions": extensions,
|
|
123
123
|
"client": CoreClient(
|
|
@@ -886,6 +886,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
886
886
|
item_id=item_id,
|
|
887
887
|
operations=operations,
|
|
888
888
|
base_url=base_url,
|
|
889
|
+
create_nest=True,
|
|
889
890
|
refresh=refresh,
|
|
890
891
|
)
|
|
891
892
|
|
|
@@ -895,6 +896,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
895
896
|
item_id: str,
|
|
896
897
|
operations: List[PatchOperation],
|
|
897
898
|
base_url: str,
|
|
899
|
+
create_nest: bool = False,
|
|
898
900
|
refresh: bool = True,
|
|
899
901
|
) -> Item:
|
|
900
902
|
"""Database logic for json patching an item following RF6902.
|
|
@@ -929,7 +931,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
929
931
|
else:
|
|
930
932
|
script_operations.append(operation)
|
|
931
933
|
|
|
932
|
-
script = operations_to_script(script_operations)
|
|
934
|
+
script = operations_to_script(script_operations, create_nest=create_nest)
|
|
933
935
|
|
|
934
936
|
try:
|
|
935
937
|
search_response = await self.client.search(
|
|
@@ -1265,6 +1267,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
1265
1267
|
collection_id=collection_id,
|
|
1266
1268
|
operations=operations,
|
|
1267
1269
|
base_url=base_url,
|
|
1270
|
+
create_nest=True,
|
|
1268
1271
|
refresh=refresh,
|
|
1269
1272
|
)
|
|
1270
1273
|
|
|
@@ -1273,6 +1276,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
1273
1276
|
collection_id: str,
|
|
1274
1277
|
operations: List[PatchOperation],
|
|
1275
1278
|
base_url: str,
|
|
1279
|
+
create_nest: bool = False,
|
|
1276
1280
|
refresh: bool = True,
|
|
1277
1281
|
) -> Collection:
|
|
1278
1282
|
"""Database logic for json patching a collection following RF6902.
|
|
@@ -1300,7 +1304,7 @@ class DatabaseLogic(BaseDatabaseLogic):
|
|
|
1300
1304
|
else:
|
|
1301
1305
|
script_operations.append(operation)
|
|
1302
1306
|
|
|
1303
|
-
script = operations_to_script(script_operations)
|
|
1307
|
+
script = operations_to_script(script_operations, create_nest=create_nest)
|
|
1304
1308
|
|
|
1305
1309
|
try:
|
|
1306
1310
|
await self.client.update(
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""library version."""
|
|
2
|
-
__version__ = "6.2.
|
|
2
|
+
__version__ = "6.2.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 6.2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: stac_fastapi_elasticsearch
|
|
3
|
+
Version: 6.2.1
|
|
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,9 +15,33 @@ 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==6.2.1
|
|
19
|
+
Requires-Dist: sfeos-helpers==6.2.1
|
|
20
|
+
Requires-Dist: elasticsearch[async]~=8.18.0
|
|
21
|
+
Requires-Dist: uvicorn~=0.23.0
|
|
22
|
+
Requires-Dist: starlette<0.36.0,>=0.35.0
|
|
18
23
|
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest~=7.0.0; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-cov~=4.0.0; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-asyncio~=0.21.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pre-commit~=3.0.0; extra == "dev"
|
|
28
|
+
Requires-Dist: ciso8601~=2.3.0; extra == "dev"
|
|
29
|
+
Requires-Dist: httpx<0.28.0,>=0.24.0; extra == "dev"
|
|
19
30
|
Provides-Extra: docs
|
|
31
|
+
Requires-Dist: mkdocs~=1.4.0; extra == "docs"
|
|
32
|
+
Requires-Dist: mkdocs-material~=9.0.0; extra == "docs"
|
|
33
|
+
Requires-Dist: pdocs~=1.2.0; extra == "docs"
|
|
20
34
|
Provides-Extra: server
|
|
35
|
+
Requires-Dist: uvicorn[standard]~=0.23.0; extra == "server"
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: license
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
21
45
|
|
|
22
46
|
# stac-fastapi-elasticsearch-opensearch
|
|
23
47
|
|
|
@@ -248,6 +272,7 @@ You can customize additional settings in your `.env` file:
|
|
|
248
272
|
| `RAISE_ON_BULK_ERROR` | Controls whether bulk insert operations raise exceptions on errors. If set to `true`, the operation will stop and raise an exception when an error occurs. If set to `false`, errors will be logged, and the operation will continue. **Note:** STAC Item and ItemCollection validation errors will always raise, regardless of this flag. | `false` | Optional |
|
|
249
273
|
| `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
|
|
250
274
|
| `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
|
|
275
|
+
| `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
|
|
251
276
|
|
|
252
277
|
> [!NOTE]
|
|
253
278
|
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|