cecil 0.0.7__py3-none-any.whl → 0.0.9__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 cecil might be problematic. Click here for more details.
- cecil/client.py +6 -2
- cecil/models.py +6 -3
- {cecil-0.0.7.dist-info → cecil-0.0.9.dist-info}/METADATA +1 -1
- cecil-0.0.9.dist-info/RECORD +7 -0
- cecil-0.0.7.dist-info/RECORD +0 -7
- {cecil-0.0.7.dist-info → cecil-0.0.9.dist-info}/WHEEL +0 -0
- {cecil-0.0.7.dist-info → cecil-0.0.9.dist-info}/licenses/LICENSE.txt +0 -0
cecil/client.py
CHANGED
|
@@ -22,9 +22,13 @@ from .models import (
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class Client:
|
|
25
|
-
def __init__(self, env=
|
|
25
|
+
def __init__(self, env=None):
|
|
26
26
|
self._api_auth = None
|
|
27
|
-
self._base_url =
|
|
27
|
+
self._base_url = (
|
|
28
|
+
"https://api.cecil.earth"
|
|
29
|
+
if env is None
|
|
30
|
+
else f"https://{env}-api.cecil.earth"
|
|
31
|
+
)
|
|
28
32
|
self._snowflake_creds = None
|
|
29
33
|
|
|
30
34
|
def create_aoi(self, name: str, geometry: Dict) -> AOI:
|
cecil/models.py
CHANGED
|
@@ -24,7 +24,8 @@ class AOI(BaseModel):
|
|
|
24
24
|
name: str
|
|
25
25
|
geometry: Dict
|
|
26
26
|
hectares: float
|
|
27
|
-
|
|
27
|
+
created_at: datetime.datetime
|
|
28
|
+
created_by: str
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
class AOICreate(BaseModel):
|
|
@@ -48,7 +49,8 @@ class DataRequest(BaseModel):
|
|
|
48
49
|
dataset_id: str
|
|
49
50
|
sub_requests: List[SubRequest]
|
|
50
51
|
status: DataRequestStatus
|
|
51
|
-
|
|
52
|
+
created_at: datetime.datetime
|
|
53
|
+
created_by: str
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
class DataRequestCreate(BaseModel):
|
|
@@ -63,7 +65,8 @@ class Reprojection(BaseModel):
|
|
|
63
65
|
data_request_id: str
|
|
64
66
|
crs: str
|
|
65
67
|
resolution: float
|
|
66
|
-
|
|
68
|
+
created_at: datetime.datetime
|
|
69
|
+
created_by: str
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
class ReprojectionCreate(BaseModel):
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
cecil/__init__.py,sha256=MF64bwUCd4sm3dvcxZnkb4ujHtxT_KeuXdD0nVieEt4,27
|
|
2
|
+
cecil/client.py,sha256=9MvC1zSndI8Z8ndbZEsLSkoiLK80SOGUVPwN_15KwjE,4347
|
|
3
|
+
cecil/models.py,sha256=eSkDhHSCJyW9OsOkK7eMYh4BXY5FI1Z_THOLVLcE8QA,2027
|
|
4
|
+
cecil-0.0.9.dist-info/METADATA,sha256=1LLbgPfIr5QHqWPI4ToRNe9waHF98tQUxEH9ikbSbnc,2676
|
|
5
|
+
cecil-0.0.9.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
+
cecil-0.0.9.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
|
|
7
|
+
cecil-0.0.9.dist-info/RECORD,,
|
cecil-0.0.7.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
cecil/__init__.py,sha256=MF64bwUCd4sm3dvcxZnkb4ujHtxT_KeuXdD0nVieEt4,27
|
|
2
|
-
cecil/client.py,sha256=VEWL90sGYxcj4lkGBwT9k6H0v4rNPdvZy6iGHby7N40,4285
|
|
3
|
-
cecil/models.py,sha256=srsNT0RKe_mIaodVlnKo71nKPGSc5_o9Y-r988B8Zsw,1958
|
|
4
|
-
cecil-0.0.7.dist-info/METADATA,sha256=g2E1P1MyxoT2feDVBhQvndfgS7jAuXOWCLijLgWCxq0,2676
|
|
5
|
-
cecil-0.0.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
-
cecil-0.0.7.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
|
|
7
|
-
cecil-0.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|