sfeos-helpers 6.7.1__tar.gz → 6.7.3__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.
Files changed (35) hide show
  1. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/PKG-INFO +2 -2
  2. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/pyproject.toml +1 -1
  3. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/filter/transform.py +13 -1
  4. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/version.py +1 -1
  5. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/.gitignore +0 -0
  6. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/README.md +0 -0
  7. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/aggregation/README.md +0 -0
  8. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/aggregation/__init__.py +0 -0
  9. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/aggregation/client.py +0 -0
  10. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/aggregation/format.py +0 -0
  11. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/README.md +0 -0
  12. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/__init__.py +0 -0
  13. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/datetime.py +0 -0
  14. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/document.py +0 -0
  15. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/index.py +0 -0
  16. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/mapping.py +0 -0
  17. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/query.py +0 -0
  18. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/database/utils.py +0 -0
  19. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/filter/README.md +0 -0
  20. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/filter/__init__.py +0 -0
  21. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/filter/client.py +0 -0
  22. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/filter/cql2.py +0 -0
  23. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/mappings.py +0 -0
  24. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/models/patch.py +0 -0
  25. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/__init__.py +0 -0
  26. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/base.py +0 -0
  27. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/factory.py +0 -0
  28. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/index_operations.py +0 -0
  29. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/inserters.py +0 -0
  30. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/managers.py +0 -0
  31. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/selection/__init__.py +0 -0
  32. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/selection/base.py +0 -0
  33. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/selection/cache_manager.py +0 -0
  34. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/stac_fastapi/sfeos_helpers/search_engine/selection/factory.py +0 -0
  35. {sfeos_helpers-6.7.1 → sfeos_helpers-6.7.3}/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.1
3
+ Version: 6.7.3
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
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Requires-Python: >=3.9
19
- Requires-Dist: stac-fastapi-core==6.7.1
19
+ Requires-Dist: stac-fastapi-core==6.7.3
20
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  # sfeos-helpers
@@ -31,7 +31,7 @@ keywords = [
31
31
  ]
32
32
  dynamic = ["version"]
33
33
  dependencies = [
34
- "stac-fastapi.core==6.7.1",
34
+ "stac-fastapi.core==6.7.3",
35
35
  ]
36
36
 
37
37
  [project.urls]
@@ -92,7 +92,19 @@ def to_es(queryables_mapping: Dict[str, Any], query: Dict[str, Any]) -> Dict[str
92
92
 
93
93
  elif query["op"] == AdvancedComparisonOp.BETWEEN:
94
94
  field = to_es_field(queryables_mapping, query["args"][0]["property"])
95
- gte, lte = query["args"][1], query["args"][2]
95
+
96
+ # Handle both formats: [property, [lower, upper]] or [property, lower, upper]
97
+ if len(query["args"]) == 2 and isinstance(query["args"][1], list):
98
+ # Format: [{'property': '...'}, [lower, upper]]
99
+ gte, lte = query["args"][1][0], query["args"][1][1]
100
+ elif len(query["args"]) == 3:
101
+ # Format: [{'property': '...'}, lower, upper]
102
+ gte, lte = query["args"][1], query["args"][2]
103
+ else:
104
+ raise ValueError(
105
+ f"BETWEEN operator expects 2 or 3 args, got {len(query['args'])}"
106
+ )
107
+
96
108
  if isinstance(gte, dict) and "timestamp" in gte:
97
109
  gte = gte["timestamp"]
98
110
  if isinstance(lte, dict) and "timestamp" in lte:
@@ -1,2 +1,2 @@
1
1
  """library version."""
2
- __version__ = "6.7.1"
2
+ __version__ = "6.7.3"
File without changes
File without changes