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.
Files changed (21) hide show
  1. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/PKG-INFO +1 -1
  2. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/models.py +4 -3
  3. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/version.py +1 -1
  4. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/PKG-INFO +1 -1
  5. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/README.md +0 -0
  6. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/setup.cfg +0 -0
  7. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/setup.py +0 -0
  8. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/__init__.py +0 -0
  9. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/app.py +0 -0
  10. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/config.py +0 -0
  11. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/errors.py +0 -0
  12. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/middleware.py +0 -0
  13. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/openapi.py +0 -0
  14. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi/api/routes.py +0 -0
  15. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/SOURCES.txt +0 -0
  16. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/dependency_links.txt +0 -0
  17. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/not-zip-safe +0 -0
  18. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/requires.txt +0 -0
  19. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/stac_fastapi.api.egg-info/top_level.txt +0 -0
  20. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/tests/test_api.py +0 -0
  21. {stac_fastapi_api-2.5.2 → stac_fastapi_api-2.5.4}/tests/test_middleware.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.api
3
- Version: 2.5.2
3
+ Version: 2.5.4
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi
6
6
  Author: Arturo Engineering
@@ -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
- """Delete collection."""
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
- """Delete item."""
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"
2
+ __version__ = "2.5.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.api
3
- Version: 2.5.2
3
+ Version: 2.5.4
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi
6
6
  Author: Arturo Engineering