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.
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/PKG-INFO +2 -2
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/setup.py +1 -1
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/search.py +13 -9
- stac_fastapi_types-3.0.0b2/stac_fastapi/types/version.py +2 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/PKG-INFO +2 -2
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/requires.txt +1 -1
- stac_fastapi_types-3.0.0a4/stac_fastapi/types/version.py +0 -2
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/README.md +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/setup.cfg +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/__init__.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/config.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/conformance.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/core.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/errors.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/extension.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/links.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/requests.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/rfc3339.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi/types/stac.py +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/SOURCES.txt +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/dependency_links.txt +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/not-zip-safe +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/top_level.txt +0 -0
- {stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/tests/test_limit.py +0 -0
- {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.
|
|
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
|
|
@@ -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
|
|
46
|
-
class APIRequest
|
|
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(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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):
|
{stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stac-fastapi.types
|
|
3
|
-
Version: 3.0.
|
|
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
|
|
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
|
|
File without changes
|
{stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{stac_fastapi_types-3.0.0a4 → stac_fastapi_types-3.0.0b2}/stac_fastapi.types.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|