stac-fastapi.api 6.5.0__tar.gz → 6.6.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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: stac-fastapi-api
3
- Version: 6.5.0
3
+ Version: 6.6.0
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Project-URL: Homepage, https://github.com/stac-utils/stac-fastapi
6
6
  Author-email: ArturoAI <engineering@arturo.ai>
@@ -17,6 +17,6 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Requires-Python: >=3.11
19
19
  Requires-Dist: brotli-asgi
20
- Requires-Dist: stac-fastapi-types~=6.4
20
+ Requires-Dist: stac-fastapi-types~=6.6
21
21
  Provides-Extra: metrics
22
- Requires-Dist: prometheus-fastapi-instrumentator>=8; extra == 'metrics'
22
+ Requires-Dist: prometheus-fastapi-instrumentator>=8.1.0; extra == 'metrics'
@@ -32,12 +32,12 @@ classifiers = [
32
32
  dynamic = ["version"]
33
33
  dependencies = [
34
34
  "brotli_asgi",
35
- "stac-fastapi.types~=6.4",
35
+ "stac-fastapi.types~=6.6",
36
36
  ]
37
37
 
38
38
  [project.optional-dependencies]
39
39
  metrics = [
40
- "prometheus-fastapi-instrumentator>=8",
40
+ "prometheus-fastapi-instrumentator>=8.1.0",
41
41
  ]
42
42
 
43
43
  [dependency-groups]
@@ -27,7 +27,6 @@ DEFAULT_STATUS_CODES = {
27
27
  ConflictError: status.HTTP_409_CONFLICT,
28
28
  ForeignKeyError: status.HTTP_424_FAILED_DEPENDENCY,
29
29
  DatabaseError: status.HTTP_424_FAILED_DEPENDENCY,
30
- Exception: status.HTTP_500_INTERNAL_SERVER_ERROR,
31
30
  InvalidQueryParameter: status.HTTP_400_BAD_REQUEST,
32
31
  ResponseValidationError: status.HTTP_500_INTERNAL_SERVER_ERROR,
33
32
  }
@@ -4,6 +4,7 @@ from typing import Annotated, Literal, cast
4
4
 
5
5
  import attr
6
6
  from fastapi import Path, Query
7
+ from fastapi.responses import JSONResponse
7
8
  from pydantic import BaseModel, create_model
8
9
  from stac_pydantic.shared import BBox
9
10
 
@@ -19,12 +20,6 @@ from stac_fastapi.types.search import (
19
20
  _validate_datetime,
20
21
  )
21
22
 
22
- try:
23
- import orjson # noqa
24
- from fastapi.responses import ORJSONResponse as JSONResponse
25
- except ImportError: # pragma: nocover
26
- from starlette.responses import JSONResponse # type: ignore [assignment]
27
-
28
23
 
29
24
  def create_request_model(
30
25
  model_name="SearchGetRequest",
@@ -1,3 +1,3 @@
1
1
  """Library version."""
2
2
 
3
- __version__ = "6.5.0"
3
+ __version__ = "6.6.0"