stac-fastapi.api 3.0.0b2__tar.gz → 3.0.0b3__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 (25) hide show
  1. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/PKG-INFO +1 -1
  2. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/config.py +2 -0
  3. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/models.py +12 -6
  4. stac_fastapi_api-3.0.0b3/stac_fastapi/api/version.py +2 -0
  5. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/PKG-INFO +1 -1
  6. stac_fastapi_api-3.0.0b2/stac_fastapi/api/version.py +0 -2
  7. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/README.md +0 -0
  8. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/setup.cfg +0 -0
  9. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/setup.py +0 -0
  10. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/__init__.py +0 -0
  11. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/app.py +0 -0
  12. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/errors.py +0 -0
  13. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/middleware.py +0 -0
  14. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/openapi.py +0 -0
  15. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi/api/routes.py +0 -0
  16. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/SOURCES.txt +0 -0
  17. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/dependency_links.txt +0 -0
  18. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/not-zip-safe +0 -0
  19. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/requires.txt +0 -0
  20. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/stac_fastapi.api.egg-info/top_level.txt +0 -0
  21. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/tests/test_api.py +0 -0
  22. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/tests/test_app.py +0 -0
  23. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/tests/test_app_prefix.py +0 -0
  24. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/tests/test_middleware.py +0 -0
  25. {stac_fastapi_api-3.0.0b2 → stac_fastapi_api-3.0.0b3}/tests/test_models.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.api
3
- Version: 3.0.0b2
3
+ Version: 3.0.0b3
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
@@ -19,6 +19,8 @@ class ApiExtensions(enum.Enum):
19
19
  sort = "sort"
20
20
  transaction = "transaction"
21
21
  aggregation = "aggregation"
22
+ collection_search = "collection-search"
23
+ free_text = "free-text"
22
24
 
23
25
 
24
26
  class AddOns(enum.Enum):
@@ -14,8 +14,9 @@ from stac_fastapi.types.search import (
14
14
  APIRequest,
15
15
  BaseSearchGetRequest,
16
16
  BaseSearchPostRequest,
17
- str2bbox,
18
- str_to_interval,
17
+ Limit,
18
+ _bbox_converter,
19
+ _datetime_converter,
19
20
  )
20
21
 
21
22
  try:
@@ -113,10 +114,15 @@ class ItemCollectionUri(APIRequest):
113
114
  """Get item collection."""
114
115
 
115
116
  collection_id: Annotated[str, Path(description="Collection ID")] = attr.ib()
116
- limit: Annotated[int, Query()] = attr.ib(default=10)
117
- bbox: Annotated[Optional[BBox], Query()] = attr.ib(default=None, converter=str2bbox)
118
- datetime: Annotated[Optional[DateTimeType], Query()] = attr.ib(
119
- default=None, converter=str_to_interval
117
+ limit: Annotated[
118
+ Optional[Limit],
119
+ Query(
120
+ description="Limits the number of results that are included in each page of the response (capped to 10_000)." # noqa: E501
121
+ ),
122
+ ] = attr.ib(default=10)
123
+ bbox: Optional[BBox] = attr.ib(default=None, converter=_bbox_converter)
124
+ datetime: Optional[DateTimeType] = attr.ib(
125
+ default=None, converter=_datetime_converter
120
126
  )
121
127
 
122
128
 
@@ -0,0 +1,2 @@
1
+ """Library version."""
2
+ __version__ = "3.0.0b3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.api
3
- Version: 3.0.0b2
3
+ Version: 3.0.0b3
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
@@ -1,2 +0,0 @@
1
- """Library version."""
2
- __version__ = "3.0.0b2"