sfeos-helpers 6.0.0__tar.gz → 6.1.0__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.
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/PKG-INFO +15 -13
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/README.md +14 -12
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/setup.py +1 -1
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/sfeos_helpers.egg-info/PKG-INFO +15 -13
- sfeos_helpers-6.1.0/sfeos_helpers.egg-info/requires.txt +1 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/query.py +32 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/version.py +1 -1
- sfeos_helpers-6.0.0/sfeos_helpers.egg-info/requires.txt +0 -1
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/setup.cfg +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/sfeos_helpers.egg-info/SOURCES.txt +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/sfeos_helpers.egg-info/dependency_links.txt +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/sfeos_helpers.egg-info/not-zip-safe +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/sfeos_helpers.egg-info/top_level.txt +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/__init__.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/client.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/format.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/__init__.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/datetime.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/document.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/index.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/mapping.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/database/utils.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/filter/__init__.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/filter/client.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/filter/cql2.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/filter/transform.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/mappings.py +0 -0
- {sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/models/patch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sfeos_helpers
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.1.0
|
|
4
4
|
Summary: Helper library for the Elasticsearch and Opensearch stac-fastapi backends.
|
|
5
5
|
Home-page: https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
|
|
6
6
|
License: MIT
|
|
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
[](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/network/members)
|
|
34
34
|
[](https://pypi.org/project/stac-fastapi-elasticsearch/)
|
|
35
35
|
[](https://github.com/radiantearth/stac-spec/tree/v1.1.0)
|
|
36
|
-
[](https://github.com/stac-utils/stac-fastapi)
|
|
37
37
|
|
|
38
38
|
## Sponsors & Supporters
|
|
39
39
|
|
|
@@ -223,28 +223,30 @@ You can customize additional settings in your `.env` file:
|
|
|
223
223
|
|------------------------------|--------------------------------------------------------------------------------------|--------------------------|---------------------------------------------------------------------------------------------|
|
|
224
224
|
| `ES_HOST` | Hostname for external Elasticsearch/OpenSearch. | `localhost` | Optional |
|
|
225
225
|
| `ES_PORT` | Port for Elasticsearch/OpenSearch. | `9200` (ES) / `9202` (OS)| Optional |
|
|
226
|
-
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `
|
|
227
|
-
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `
|
|
226
|
+
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `true` | Optional |
|
|
227
|
+
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `true` | Optional |
|
|
228
|
+
| `ES_API_KEY` | API Key for external Elasticsearch/OpenSearch. | N/A | Optional |
|
|
229
|
+
| `ES_TIMEOUT` | Client timeout for Elasticsearch/OpenSearch. | DB client default | Optional |
|
|
228
230
|
| `STAC_FASTAPI_TITLE` | Title of the API in the documentation. | `stac-fastapi-<backend>` | Optional |
|
|
229
231
|
| `STAC_FASTAPI_DESCRIPTION` | Description of the API in the documentation. | N/A | Optional |
|
|
230
232
|
| `STAC_FASTAPI_VERSION` | API version. | `2.1` | Optional |
|
|
231
|
-
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID
|
|
233
|
+
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID | `stac-fastapi` | Optional |
|
|
232
234
|
| `APP_HOST` | Server bind address. | `0.0.0.0` | Optional |
|
|
233
|
-
| `APP_PORT` | Server port. | `
|
|
235
|
+
| `APP_PORT` | Server port. | `8000` | Optional |
|
|
234
236
|
| `ENVIRONMENT` | Runtime environment. | `local` | Optional |
|
|
235
237
|
| `WEB_CONCURRENCY` | Number of worker processes. | `10` | Optional |
|
|
236
238
|
| `RELOAD` | Enable auto-reload for development. | `true` | Optional |
|
|
237
239
|
| `STAC_FASTAPI_RATE_LIMIT` | API rate limit per client. | `200/minute` | Optional |
|
|
238
|
-
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional
|
|
239
|
-
| `ELASTICSEARCH_VERSION`
|
|
240
|
-
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional
|
|
241
|
-
| `ENABLE_DIRECT_RESPONSE`
|
|
242
|
-
| `RAISE_ON_BULK_ERROR`
|
|
243
|
-
| `DATABASE_REFRESH`
|
|
240
|
+
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional |
|
|
241
|
+
| `ELASTICSEARCH_VERSION` | Version of Elasticsearch to use. | `8.11.0` | Optional |
|
|
242
|
+
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional |
|
|
243
|
+
| `ENABLE_DIRECT_RESPONSE` | Enable direct response for maximum performance (disables all FastAPI dependencies, including authentication, custom status codes, and validation) | `false` | Optional |
|
|
244
|
+
| `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 |
|
|
245
|
+
| `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 |
|
|
244
246
|
| `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 |
|
|
245
247
|
|
|
246
248
|
> [!NOTE]
|
|
247
|
-
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, and `
|
|
249
|
+
> 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.
|
|
248
250
|
|
|
249
251
|
## Interacting with the API
|
|
250
252
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/network/members)
|
|
16
16
|
[](https://pypi.org/project/stac-fastapi-elasticsearch/)
|
|
17
17
|
[](https://github.com/radiantearth/stac-spec/tree/v1.1.0)
|
|
18
|
-
[](https://github.com/stac-utils/stac-fastapi)
|
|
19
19
|
|
|
20
20
|
## Sponsors & Supporters
|
|
21
21
|
|
|
@@ -205,28 +205,30 @@ You can customize additional settings in your `.env` file:
|
|
|
205
205
|
|------------------------------|--------------------------------------------------------------------------------------|--------------------------|---------------------------------------------------------------------------------------------|
|
|
206
206
|
| `ES_HOST` | Hostname for external Elasticsearch/OpenSearch. | `localhost` | Optional |
|
|
207
207
|
| `ES_PORT` | Port for Elasticsearch/OpenSearch. | `9200` (ES) / `9202` (OS)| Optional |
|
|
208
|
-
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `
|
|
209
|
-
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `
|
|
208
|
+
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `true` | Optional |
|
|
209
|
+
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `true` | Optional |
|
|
210
|
+
| `ES_API_KEY` | API Key for external Elasticsearch/OpenSearch. | N/A | Optional |
|
|
211
|
+
| `ES_TIMEOUT` | Client timeout for Elasticsearch/OpenSearch. | DB client default | Optional |
|
|
210
212
|
| `STAC_FASTAPI_TITLE` | Title of the API in the documentation. | `stac-fastapi-<backend>` | Optional |
|
|
211
213
|
| `STAC_FASTAPI_DESCRIPTION` | Description of the API in the documentation. | N/A | Optional |
|
|
212
214
|
| `STAC_FASTAPI_VERSION` | API version. | `2.1` | Optional |
|
|
213
|
-
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID
|
|
215
|
+
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID | `stac-fastapi` | Optional |
|
|
214
216
|
| `APP_HOST` | Server bind address. | `0.0.0.0` | Optional |
|
|
215
|
-
| `APP_PORT` | Server port. | `
|
|
217
|
+
| `APP_PORT` | Server port. | `8000` | Optional |
|
|
216
218
|
| `ENVIRONMENT` | Runtime environment. | `local` | Optional |
|
|
217
219
|
| `WEB_CONCURRENCY` | Number of worker processes. | `10` | Optional |
|
|
218
220
|
| `RELOAD` | Enable auto-reload for development. | `true` | Optional |
|
|
219
221
|
| `STAC_FASTAPI_RATE_LIMIT` | API rate limit per client. | `200/minute` | Optional |
|
|
220
|
-
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional
|
|
221
|
-
| `ELASTICSEARCH_VERSION`
|
|
222
|
-
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional
|
|
223
|
-
| `ENABLE_DIRECT_RESPONSE`
|
|
224
|
-
| `RAISE_ON_BULK_ERROR`
|
|
225
|
-
| `DATABASE_REFRESH`
|
|
222
|
+
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional |
|
|
223
|
+
| `ELASTICSEARCH_VERSION` | Version of Elasticsearch to use. | `8.11.0` | Optional |
|
|
224
|
+
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional |
|
|
225
|
+
| `ENABLE_DIRECT_RESPONSE` | Enable direct response for maximum performance (disables all FastAPI dependencies, including authentication, custom status codes, and validation) | `false` | Optional |
|
|
226
|
+
| `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 |
|
|
227
|
+
| `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 |
|
|
226
228
|
| `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 |
|
|
227
229
|
|
|
228
230
|
> [!NOTE]
|
|
229
|
-
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, and `
|
|
231
|
+
> 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.
|
|
230
232
|
|
|
231
233
|
## Interacting with the API
|
|
232
234
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sfeos-helpers
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.1.0
|
|
4
4
|
Summary: Helper library for the Elasticsearch and Opensearch stac-fastapi backends.
|
|
5
5
|
Home-page: https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
|
|
6
6
|
License: MIT
|
|
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
[](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/network/members)
|
|
34
34
|
[](https://pypi.org/project/stac-fastapi-elasticsearch/)
|
|
35
35
|
[](https://github.com/radiantearth/stac-spec/tree/v1.1.0)
|
|
36
|
-
[](https://github.com/stac-utils/stac-fastapi)
|
|
37
37
|
|
|
38
38
|
## Sponsors & Supporters
|
|
39
39
|
|
|
@@ -223,28 +223,30 @@ You can customize additional settings in your `.env` file:
|
|
|
223
223
|
|------------------------------|--------------------------------------------------------------------------------------|--------------------------|---------------------------------------------------------------------------------------------|
|
|
224
224
|
| `ES_HOST` | Hostname for external Elasticsearch/OpenSearch. | `localhost` | Optional |
|
|
225
225
|
| `ES_PORT` | Port for Elasticsearch/OpenSearch. | `9200` (ES) / `9202` (OS)| Optional |
|
|
226
|
-
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `
|
|
227
|
-
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `
|
|
226
|
+
| `ES_USE_SSL` | Use SSL for connecting to Elasticsearch/OpenSearch. | `true` | Optional |
|
|
227
|
+
| `ES_VERIFY_CERTS` | Verify SSL certificates when connecting. | `true` | Optional |
|
|
228
|
+
| `ES_API_KEY` | API Key for external Elasticsearch/OpenSearch. | N/A | Optional |
|
|
229
|
+
| `ES_TIMEOUT` | Client timeout for Elasticsearch/OpenSearch. | DB client default | Optional |
|
|
228
230
|
| `STAC_FASTAPI_TITLE` | Title of the API in the documentation. | `stac-fastapi-<backend>` | Optional |
|
|
229
231
|
| `STAC_FASTAPI_DESCRIPTION` | Description of the API in the documentation. | N/A | Optional |
|
|
230
232
|
| `STAC_FASTAPI_VERSION` | API version. | `2.1` | Optional |
|
|
231
|
-
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID
|
|
233
|
+
| `STAC_FASTAPI_LANDING_PAGE_ID` | Landing page ID | `stac-fastapi` | Optional |
|
|
232
234
|
| `APP_HOST` | Server bind address. | `0.0.0.0` | Optional |
|
|
233
|
-
| `APP_PORT` | Server port. | `
|
|
235
|
+
| `APP_PORT` | Server port. | `8000` | Optional |
|
|
234
236
|
| `ENVIRONMENT` | Runtime environment. | `local` | Optional |
|
|
235
237
|
| `WEB_CONCURRENCY` | Number of worker processes. | `10` | Optional |
|
|
236
238
|
| `RELOAD` | Enable auto-reload for development. | `true` | Optional |
|
|
237
239
|
| `STAC_FASTAPI_RATE_LIMIT` | API rate limit per client. | `200/minute` | Optional |
|
|
238
|
-
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional
|
|
239
|
-
| `ELASTICSEARCH_VERSION`
|
|
240
|
-
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional
|
|
241
|
-
| `ENABLE_DIRECT_RESPONSE`
|
|
242
|
-
| `RAISE_ON_BULK_ERROR`
|
|
243
|
-
| `DATABASE_REFRESH`
|
|
240
|
+
| `BACKEND` | Tests-related variable | `elasticsearch` or `opensearch` based on the backend | Optional |
|
|
241
|
+
| `ELASTICSEARCH_VERSION` | Version of Elasticsearch to use. | `8.11.0` | Optional |
|
|
242
|
+
| `OPENSEARCH_VERSION` | OpenSearch version | `2.11.1` | Optional |
|
|
243
|
+
| `ENABLE_DIRECT_RESPONSE` | Enable direct response for maximum performance (disables all FastAPI dependencies, including authentication, custom status codes, and validation) | `false` | Optional |
|
|
244
|
+
| `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 |
|
|
245
|
+
| `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 |
|
|
244
246
|
| `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 |
|
|
245
247
|
|
|
246
248
|
> [!NOTE]
|
|
247
|
-
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, and `
|
|
249
|
+
> 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.
|
|
248
250
|
|
|
249
251
|
## Interacting with the API
|
|
250
252
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
stac-fastapi.core==6.1.0
|
|
@@ -7,6 +7,8 @@ from typing import Any, Dict, List, Optional
|
|
|
7
7
|
|
|
8
8
|
from stac_fastapi.sfeos_helpers.mappings import Geometry
|
|
9
9
|
|
|
10
|
+
ES_MAX_URL_LENGTH = 4096
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
def apply_free_text_filter_shared(
|
|
12
14
|
search: Any, free_text_queries: Optional[List[str]]
|
|
@@ -83,3 +85,33 @@ def populate_sort_shared(sortby: List) -> Optional[Dict[str, Dict[str, str]]]:
|
|
|
83
85
|
return {s.field: {"order": s.direction} for s in sortby}
|
|
84
86
|
else:
|
|
85
87
|
return None
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def add_collections_to_body(
|
|
91
|
+
collection_ids: List[str], query: Optional[Dict[str, Any]]
|
|
92
|
+
) -> Dict[str, Any]:
|
|
93
|
+
"""Add a list of collection ids to the body of a query.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
collection_ids (List[str]): A list of collections ids.
|
|
97
|
+
query (Optional[Dict[str, Any]]): The query to add collections to. If none, create a query that filters
|
|
98
|
+
the collection ids.
|
|
99
|
+
|
|
100
|
+
Returns:
|
|
101
|
+
Dict[str, Any]: A query that contains a filter on the given collection ids.
|
|
102
|
+
|
|
103
|
+
Notes:
|
|
104
|
+
This function is needed in the execute_search function when the size of the URL path will exceed the maximum of ES.
|
|
105
|
+
"""
|
|
106
|
+
index_filter = {"terms": {"collection": collection_ids}}
|
|
107
|
+
if query is None:
|
|
108
|
+
query = {"query": {}}
|
|
109
|
+
if "bool" not in query:
|
|
110
|
+
query["bool"] = {}
|
|
111
|
+
if "filter" not in query["bool"]:
|
|
112
|
+
query["bool"]["filter"] = []
|
|
113
|
+
|
|
114
|
+
filters = query["bool"]["filter"]
|
|
115
|
+
if index_filter not in filters:
|
|
116
|
+
filters.append(index_filter)
|
|
117
|
+
return query
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""library version."""
|
|
2
|
-
__version__ = "6.
|
|
2
|
+
__version__ = "6.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
stac-fastapi.core==6.0.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/__init__.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/client.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.0.0 → sfeos_helpers-6.1.0}/stac_fastapi/sfeos_helpers/aggregation/format.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|