terrakio-core 0.5.2__py3-none-any.whl → 0.5.3.1__py3-none-any.whl
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.
Potentially problematic release.
This version of terrakio-core might be problematic. Click here for more details.
- terrakio_core/__init__.py +1 -1
- terrakio_core/async_client.py +4 -1
- terrakio_core/exceptions.py +6 -0
- {terrakio_core-0.5.2.dist-info → terrakio_core-0.5.3.1.dist-info}/METADATA +1 -1
- {terrakio_core-0.5.2.dist-info → terrakio_core-0.5.3.1.dist-info}/RECORD +6 -6
- {terrakio_core-0.5.2.dist-info → terrakio_core-0.5.3.1.dist-info}/WHEEL +0 -0
terrakio_core/__init__.py
CHANGED
|
@@ -8,7 +8,7 @@ Core components for Terrakio API clients.
|
|
|
8
8
|
# Suppress ONNX Runtime GPU device discovery warnings - MUST BE FIRST!
|
|
9
9
|
import os
|
|
10
10
|
os.environ['ORT_LOGGING_LEVEL'] = '3'
|
|
11
|
-
__version__ = "0.5.
|
|
11
|
+
__version__ = "0.5.3.1"
|
|
12
12
|
|
|
13
13
|
from .async_client import AsyncClient
|
|
14
14
|
from .sync_client import SyncClient as Client
|
terrakio_core/async_client.py
CHANGED
|
@@ -9,7 +9,7 @@ from geopandas import GeoDataFrame
|
|
|
9
9
|
from shapely.geometry.base import BaseGeometry as ShapelyGeometry
|
|
10
10
|
from shapely.geometry import mapping
|
|
11
11
|
from .client import BaseClient
|
|
12
|
-
from .exceptions import APIError, NetworkError
|
|
12
|
+
from .exceptions import APIError, NetworkError, GeoQueryError
|
|
13
13
|
from .endpoints.dataset_management import DatasetManagement
|
|
14
14
|
from .endpoints.user_management import UserManagement
|
|
15
15
|
from .endpoints.mass_stats import MassStats
|
|
@@ -184,6 +184,9 @@ class AsyncClient(BaseClient):
|
|
|
184
184
|
}
|
|
185
185
|
result, status_code = await self._terrakio_request("POST", "geoquery", json=payload)
|
|
186
186
|
|
|
187
|
+
if status_code != 200:
|
|
188
|
+
raise GeoQueryError(result['detail'], status_code=status_code)
|
|
189
|
+
|
|
187
190
|
return result
|
|
188
191
|
|
|
189
192
|
async def zonal_stats(self, *args, **kwargs):
|
terrakio_core/exceptions.py
CHANGED
|
@@ -385,6 +385,12 @@ class CancelCollectionTasksError(Exception):
|
|
|
385
385
|
|
|
386
386
|
class CancelAllTasksError(Exception):
|
|
387
387
|
"""Exception raised for cancel all tasks errors."""
|
|
388
|
+
def __init__(self, message: str, status_code: int = None):
|
|
389
|
+
super().__init__(message)
|
|
390
|
+
self.status_code = status_code
|
|
391
|
+
|
|
392
|
+
class GeoQueryError(Exception):
|
|
393
|
+
"""Exception raised for geo query errors."""
|
|
388
394
|
def __init__(self, message: str, status_code: int = None):
|
|
389
395
|
super().__init__(message)
|
|
390
396
|
self.status_code = status_code
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
terrakio_core/__init__.py,sha256=
|
|
1
|
+
terrakio_core/__init__.py,sha256=ZJ4gRoZu3cU5nK1yJ1OettHtre1RmP53x_dN0rJwMiQ,393
|
|
2
2
|
terrakio_core/accessors.py,sha256=UZIi9y4RpBxouSmKuwuNYLIYqDxD8BH-GnUzwJuc1JI,47570
|
|
3
|
-
terrakio_core/async_client.py,sha256=
|
|
3
|
+
terrakio_core/async_client.py,sha256=gTEqvo35vWWT4RnuthnW0GKfec7KY6yWZ7juTaEm_5Q,9849
|
|
4
4
|
terrakio_core/client.py,sha256=VXP7BtJWIfpPPZR7_yNdSTcGwNgTwhb7KorusqkQrzk,5603
|
|
5
5
|
terrakio_core/config.py,sha256=Zja4F1r8PjmeH4poBnRR8SHKmzZRfGPsLWHBHugVMvc,2695
|
|
6
|
-
terrakio_core/exceptions.py,sha256=
|
|
6
|
+
terrakio_core/exceptions.py,sha256=6_2y5AwFvsZl5UhVZS2Uuarwd3GR_bnWocsxDs54LfQ,14635
|
|
7
7
|
terrakio_core/sync_client.py,sha256=m5ybuQdWmjg2lIjWZED91iBXE094lOPGn-S-01ee8w4,10802
|
|
8
8
|
terrakio_core/convenience_functions/create_dataset_file.py,sha256=RDTAQnKUigyczv3EKhKrs34VMDZDCgL4iz0bge1d9e4,4774
|
|
9
9
|
terrakio_core/convenience_functions/geoquries.py,sha256=7E3drOD5ffNk2-rKLbwKsNp3_Berq-S1lQk5wwHSuAo,3786
|
|
@@ -18,6 +18,6 @@ terrakio_core/endpoints/user_management.py,sha256=L_g4ysrh2xyz_JbObUU_tCxgHxisrD
|
|
|
18
18
|
terrakio_core/helper/bounded_taskgroup.py,sha256=wiTH10jhKZgrsgrFUNG6gig8bFkUEPHkGRT2XY7Rgmo,677
|
|
19
19
|
terrakio_core/helper/decorators.py,sha256=L6om7wmWNgCei3Wy5U0aZ-70OzsCwclkjIf7SfQuhCg,2289
|
|
20
20
|
terrakio_core/helper/tiles.py,sha256=lcLCO6KiP05lCI9vngo3zCZJ6Z9C0pUxHSQS4H58EHc,2699
|
|
21
|
-
terrakio_core-0.5.
|
|
22
|
-
terrakio_core-0.5.
|
|
23
|
-
terrakio_core-0.5.
|
|
21
|
+
terrakio_core-0.5.3.1.dist-info/METADATA,sha256=4iyMWwEpuoZTjGAI_pcLGFndroqsThJdNS7R97UVs34,1181
|
|
22
|
+
terrakio_core-0.5.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
23
|
+
terrakio_core-0.5.3.1.dist-info/RECORD,,
|
|
File without changes
|