sfeos-helpers 6.7.5__tar.gz → 6.7.6__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.7.5 → sfeos_helpers-6.7.6}/PKG-INFO +2 -2
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/pyproject.toml +1 -1
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/datetime.py +7 -7
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/version.py +1 -1
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/.gitignore +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/README.md +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/README.md +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/__init__.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/client.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/format.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/README.md +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/__init__.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/document.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/index.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/mapping.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/query.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/database/utils.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/filter/README.md +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/filter/__init__.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/filter/client.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/filter/cql2.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/filter/transform.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/mappings.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/models/patch.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/__init__.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/base.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/factory.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/index_operations.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/inserters.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/managers.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/selection/__init__.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/selection/base.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/selection/cache_manager.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/selection/factory.py +0 -0
- {sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/selection/selectors.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sfeos_helpers
|
|
3
|
-
Version: 6.7.
|
|
3
|
+
Version: 6.7.6
|
|
4
4
|
Summary: Helper library for the Elasticsearch and Opensearch stac-fastapi backends.
|
|
5
5
|
Project-URL: Homepage, https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
|
|
6
6
|
License: MIT
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
16
|
Requires-Python: >=3.11
|
|
17
|
-
Requires-Dist: stac-fastapi-core==6.7.
|
|
17
|
+
Requires-Dist: stac-fastapi-core==6.7.6
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# sfeos-helpers
|
|
@@ -53,12 +53,12 @@ def return_date(
|
|
|
53
53
|
if "/" in interval:
|
|
54
54
|
parts = interval.split("/")
|
|
55
55
|
result["gte"] = (
|
|
56
|
-
parts[0] if parts[0] != ".." else MIN_DATE_NANOS.isoformat()
|
|
56
|
+
parts[0] if parts[0] != ".." else MIN_DATE_NANOS.isoformat()
|
|
57
57
|
)
|
|
58
58
|
result["lte"] = (
|
|
59
59
|
parts[1]
|
|
60
60
|
if len(parts) > 1 and parts[1] != ".."
|
|
61
|
-
else MAX_DATE_NANOS.isoformat()
|
|
61
|
+
else MAX_DATE_NANOS.isoformat()
|
|
62
62
|
)
|
|
63
63
|
else:
|
|
64
64
|
converted_time = interval if interval != ".." else None
|
|
@@ -75,7 +75,7 @@ def return_date(
|
|
|
75
75
|
dt_utc = MIN_DATE_NANOS
|
|
76
76
|
elif dt_utc > MAX_DATE_NANOS:
|
|
77
77
|
dt_utc = MAX_DATE_NANOS
|
|
78
|
-
datetime_iso = dt_utc.isoformat()
|
|
78
|
+
datetime_iso = dt_utc.isoformat().replace("+00:00", "Z")
|
|
79
79
|
result["gte"] = result["lte"] = datetime_iso
|
|
80
80
|
elif isinstance(interval, tuple):
|
|
81
81
|
start, end = interval
|
|
@@ -90,7 +90,7 @@ def return_date(
|
|
|
90
90
|
start_utc = MIN_DATE_NANOS
|
|
91
91
|
elif start_utc > MAX_DATE_NANOS:
|
|
92
92
|
start_utc = MAX_DATE_NANOS
|
|
93
|
-
result["gte"] = start_utc.
|
|
93
|
+
result["gte"] = start_utc.isoformat().replace("+00:00", "Z")
|
|
94
94
|
if end:
|
|
95
95
|
end_utc = (
|
|
96
96
|
end.astimezone(timezone.utc)
|
|
@@ -101,7 +101,7 @@ def return_date(
|
|
|
101
101
|
end_utc = MIN_DATE_NANOS
|
|
102
102
|
elif end_utc > MAX_DATE_NANOS:
|
|
103
103
|
end_utc = MAX_DATE_NANOS
|
|
104
|
-
result["lte"] = end_utc.
|
|
104
|
+
result["lte"] = end_utc.isoformat().replace("+00:00", "Z")
|
|
105
105
|
|
|
106
106
|
return result
|
|
107
107
|
|
|
@@ -131,9 +131,9 @@ def return_date(
|
|
|
131
131
|
start, end = interval
|
|
132
132
|
# Ensure datetimes are converted to UTC and formatted with 'Z'
|
|
133
133
|
if start:
|
|
134
|
-
result["gte"] = start.
|
|
134
|
+
result["gte"] = start.isoformat().replace("+00:00", "Z")
|
|
135
135
|
if end:
|
|
136
|
-
result["lte"] = end.
|
|
136
|
+
result["lte"] = end.isoformat().replace("+00:00", "Z")
|
|
137
137
|
|
|
138
138
|
return result
|
|
139
139
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""library version."""
|
|
2
|
-
__version__ = "6.7.
|
|
2
|
+
__version__ = "6.7.6"
|
|
File without changes
|
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/README.md
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/__init__.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/aggregation/client.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/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
|
|
File without changes
|
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/__init__.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/base.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/factory.py
RENAMED
|
File without changes
|
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/inserters.py
RENAMED
|
File without changes
|
{sfeos_helpers-6.7.5 → sfeos_helpers-6.7.6}/stac_fastapi/sfeos_helpers/search_engine/managers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|