Skip to content

Commit 257d4e4

Browse files
authored
[ARC-3083] Add provider properties to Scene class (#754)
* Add provider properties to Scene class * Mark provider properties as required
1 parent 70c0174 commit 257d4e4

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ You can check your current version with the following command:
3030

3131
For more information, see [UP42 Python package description](https://pypi.org/project/up42-py/).
3232

33+
### 2.4.0a2
34+
**July 07, 2025**
35+
- Added `provider_properties` data field to `glossary::Scene` active record class.
36+
3337
### 2.4.0a1
3438
**July 04, 2025**
3539
- Added `FeasibilityStudy` active record class to `tasking` module.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "up42-py"
3-
version = "2.4.0a1"
3+
version = "2.4.0a2"
44
description = "Python SDK for UP42, the geospatial marketplace and developer platform."
55
authors = ["UP42 GmbH <[email protected]>"]
66
license = "https://github.com/up42/up42-py/blob/master/LICENSE"

tests/test_glossary.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
url=f"{constants.API_HOST}/catalog/{HOST_NAME}/image/{SCENE_ID}/quicklook",
7575
file_name=f"quicklook_{SCENE_ID}.jpg",
7676
),
77+
provider_properties={"some": "properties"},
7778
)
7879
SCENE_FEATURE = {
7980
"geometry": POLYGON,
@@ -89,6 +90,7 @@
8990
"resolution": SCENE.resolution,
9091
"deliveryTime": SCENE.delivery_time,
9192
"producer": SCENE.producer,
93+
"providerProperties": SCENE.provider_properties,
9294
},
9395
}
9496

@@ -143,7 +145,12 @@ def test_fails_to_search_if_provider_is_not_host(self):
143145
(None, None, "..", ".."),
144146
("2023-01-01", None, "2023-01-01T00:00:00Z", ".."),
145147
(None, "2023-12-31", "..", "2023-12-31T23:59:59Z"),
146-
("2023-01-01", "2023-12-31", "2023-01-01T00:00:00Z", "2023-12-31T23:59:59Z"),
148+
(
149+
"2023-01-01",
150+
"2023-12-31",
151+
"2023-01-01T00:00:00Z",
152+
"2023-12-31T23:59:59Z",
153+
),
147154
],
148155
)
149156
@pytest.mark.parametrize("cql_query", [None, {"cql2": "query"}])

up42/glossary.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Scene:
5858
delivery_time: Optional[Literal["MINUTES", "HOURS", "DAYS"]]
5959
producer: str
6060
quicklook: utils.ImageFile
61+
provider_properties: dict
6162

6263

6364
class InvalidHost(ValueError):
@@ -140,6 +141,7 @@ def _as_scene(self, feature: geojson.Feature) -> Scene:
140141
file_name=f"quicklook_{scene_id}.jpg",
141142
session=self.session,
142143
),
144+
provider_properties=properties["providerProperties"],
143145
)
144146

145147

0 commit comments

Comments
 (0)