stac-fastapi.api 2.5.2__tar.gz → 2.5.4__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_api-2.5.2 → stac_fastapi_api-2.5.4}/PKG-INFO +1 -1
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/models.py +4 -3
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/version.py +1 -1
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/PKG-INFO +1 -1
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/README.md +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/setup.cfg +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/setup.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/__init__.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/app.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/config.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/errors.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/middleware.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/openapi.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/routes.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/SOURCES.txt +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/dependency_links.txt +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/not-zip-safe +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/requires.txt +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/top_level.txt +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/tests/test_api.py +0 -0
- {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/tests/test_middleware.py +0 -0
|
@@ -16,6 +16,7 @@ from stac_fastapi.types.search import (
|
|
|
16
16
|
BaseSearchGetRequest,
|
|
17
17
|
BaseSearchPostRequest,
|
|
18
18
|
str2bbox,
|
|
19
|
+
str_to_interval,
|
|
19
20
|
)
|
|
20
21
|
|
|
21
22
|
|
|
@@ -102,14 +103,14 @@ def create_post_request_model(
|
|
|
102
103
|
|
|
103
104
|
@attr.s # type:ignore
|
|
104
105
|
class CollectionUri(APIRequest):
|
|
105
|
-
"""
|
|
106
|
+
"""Get or delete collection."""
|
|
106
107
|
|
|
107
108
|
collection_id: str = attr.ib(default=Path(..., description="Collection ID"))
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
@attr.s
|
|
111
112
|
class ItemUri(CollectionUri):
|
|
112
|
-
"""
|
|
113
|
+
"""Get or delete item."""
|
|
113
114
|
|
|
114
115
|
item_id: str = attr.ib(default=Path(..., description="Item ID"))
|
|
115
116
|
|
|
@@ -127,7 +128,7 @@ class ItemCollectionUri(CollectionUri):
|
|
|
127
128
|
|
|
128
129
|
limit: int = attr.ib(default=10)
|
|
129
130
|
bbox: Optional[BBox] = attr.ib(default=None, converter=str2bbox)
|
|
130
|
-
datetime: Optional[DateTimeType] = attr.ib(default=None)
|
|
131
|
+
datetime: Optional[DateTimeType] = attr.ib(default=None, converter=str_to_interval)
|
|
131
132
|
|
|
132
133
|
|
|
133
134
|
class POSTTokenPagination(BaseModel):
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""Library version."""
|
|
2
|
-
__version__ = "2.5.
|
|
2
|
+
__version__ = "2.5.4"
|
|
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
|
{stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|