stac-fastapi.types 3.0.0a4__tar.gz → 3.0.0b2__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_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/PKG-INFO +2 -2
  2. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/setup.py +1 -1
  3. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/search.py +13 -9
  4. stac_fastapi_types-3.0.0b2/stac_fastapi/types/version.py +2 -0
  5. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/PKG-INFO +2 -2
  6. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/requires.txt +1 -1
  7. stac_fastapi_types-3.0.0a4/stac_fastapi/types/version.py +0 -2
  8. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/README.md +0 -0
  9. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/setup.cfg +0 -0
  10. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/__init__.py +0 -0
  11. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/config.py +0 -0
  12. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/conformance.py +0 -0
  13. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/core.py +0 -0
  14. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/errors.py +0 -0
  15. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/extension.py +0 -0
  16. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/links.py +0 -0
  17. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/requests.py +0 -0
  18. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/rfc3339.py +0 -0
  19. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/stac.py +0 -0
  20. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/SOURCES.txt +0 -0
  21. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/dependency_links.txt +0 -0
  22. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/not-zip-safe +0 -0
  23. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/top_level.txt +0 -0
  24. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/tests/test_limit.py +0 -0
  25. {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/tests/test_rfc3339.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.types
3
- Version: 3.0.0a4
3
+ Version: 3.0.0b2
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
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: License :: OSI Approved :: MIT License
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/markdown
21
- Requires-Dist: fastapi-slim
21
+ Requires-Dist: fastapi-slim>=0.111.0
22
22
  Requires-Dist: attrs>=23.2.0
23
23
  Requires-Dist: pydantic-settings>=2
24
24
  Requires-Dist: stac_pydantic~=3.1
@@ -6,7 +6,7 @@ with open("README.md") as f:
6
6
  desc = f.read()
7
7
 
8
8
  install_requires = [
9
- "fastapi-slim",
9
+ "fastapi-slim>=0.111.0",
10
10
  "attrs>=23.2.0",
11
11
  "pydantic-settings>=2",
12
12
  "stac_pydantic~=3.1",
@@ -2,10 +2,10 @@
2
2
 
3
3
  """
4
4
 
5
- import abc
6
5
  from typing import Dict, List, Optional, Union
7
6
 
8
7
  import attr
8
+ from fastapi import Query
9
9
  from pydantic import PositiveInt
10
10
  from pydantic.functional_validators import AfterValidator
11
11
  from stac_pydantic.api import Search
@@ -42,8 +42,8 @@ NumType = Union[float, int]
42
42
  Limit = Annotated[PositiveInt, AfterValidator(crop)]
43
43
 
44
44
 
45
- @attr.s # type:ignore
46
- class APIRequest(abc.ABC):
45
+ @attr.s
46
+ class APIRequest:
47
47
  """Generic API Request base class."""
48
48
 
49
49
  def kwargs(self) -> Dict:
@@ -56,12 +56,16 @@ class APIRequest(abc.ABC):
56
56
  class BaseSearchGetRequest(APIRequest):
57
57
  """Base arguments for GET Request."""
58
58
 
59
- collections: Optional[str] = attr.ib(default=None, converter=str2list)
60
- ids: Optional[str] = attr.ib(default=None, converter=str2list)
61
- bbox: Optional[BBox] = attr.ib(default=None, converter=str2bbox)
62
- intersects: Optional[str] = attr.ib(default=None)
63
- datetime: Optional[DateTimeType] = attr.ib(default=None, converter=str_to_interval)
64
- limit: Optional[int] = attr.ib(default=10)
59
+ collections: Annotated[Optional[str], Query()] = attr.ib(
60
+ default=None, converter=str2list
61
+ )
62
+ ids: Annotated[Optional[str], Query()] = attr.ib(default=None, converter=str2list)
63
+ bbox: Annotated[Optional[BBox], Query()] = attr.ib(default=None, converter=str2bbox)
64
+ intersects: Annotated[Optional[str], Query()] = attr.ib(default=None)
65
+ datetime: Annotated[Optional[DateTimeType], Query()] = attr.ib(
66
+ default=None, converter=str_to_interval
67
+ )
68
+ limit: Annotated[Optional[int], Query()] = attr.ib(default=10)
65
69
 
66
70
 
67
71
  class BaseSearchPostRequest(Search):
@@ -0,0 +1,2 @@
1
+ """Library version."""
2
+ __version__ = "3.0.0b2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stac-fastapi.types
3
- Version: 3.0.0a4
3
+ Version: 3.0.0b2
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
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: License :: OSI Approved :: MIT License
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/markdown
21
- Requires-Dist: fastapi-slim
21
+ Requires-Dist: fastapi-slim>=0.111.0
22
22
  Requires-Dist: attrs>=23.2.0
23
23
  Requires-Dist: pydantic-settings>=2
24
24
  Requires-Dist: stac_pydantic~=3.1
@@ -1,4 +1,4 @@
1
- fastapi-slim
1
+ fastapi-slim>=0.111.0
2
2
  attrs>=23.2.0
3
3
  pydantic-settings>=2
4
4
  stac_pydantic~=3.1
@@ -1,2 +0,0 @@
1
- """Library version."""
2
- __version__ = "3.0.0a4"