cecil 0.0.26__py3-none-any.whl → 0.0.28__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 +7 -18
- cecil/models.py +5 -0
- cecil/version.py +1 -1
- {cecil-0.0.26.dist-info → cecil-0.0.28.dist-info}/METADATA +3 -3
- cecil-0.0.28.dist-info/RECORD +10 -0
- cecil-0.0.26.dist-info/RECORD +0 -10
- {cecil-0.0.26.dist-info → cecil-0.0.28.dist-info}/WHEEL +0 -0
- {cecil-0.0.26.dist-info → cecil-0.0.28.dist-info}/licenses/LICENSE.txt +0 -0
cecil/client.py
CHANGED
|
@@ -36,6 +36,7 @@ from .models import (
|
|
|
36
36
|
User,
|
|
37
37
|
UserCreate,
|
|
38
38
|
DataRequestMetadata,
|
|
39
|
+
DataRequestParquetFiles,
|
|
39
40
|
)
|
|
40
41
|
from .version import __version__
|
|
41
42
|
from .xarray import load_xarray
|
|
@@ -90,24 +91,12 @@ class Client:
|
|
|
90
91
|
return load_xarray(metadata)
|
|
91
92
|
|
|
92
93
|
def load_dataframe(self, data_request_id: str) -> pd.DataFrame:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"f30f2125-c472-43c7-85c8-52f0d4b1d160": "data_request_db.ibat.redlist",
|
|
100
|
-
"c1ee0d62-95ef-49b1-adf1-6a5a933d726d": "data_request_db.ibat.wdpa",
|
|
101
|
-
}[data_request.dataset_id]
|
|
102
|
-
except KeyError:
|
|
103
|
-
raise Error(
|
|
104
|
-
"method not allowed",
|
|
105
|
-
{"message": "load_dataframe() is not supported for raster datasets."},
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
return self._query(
|
|
109
|
-
f"select * from {secure_view} where data_request_id = '{data_request_id}'"
|
|
110
|
-
)
|
|
94
|
+
res = self._get(url=f"/v0/data-requests/{data_request_id}/parquet-files")
|
|
95
|
+
metadata = DataRequestParquetFiles(**res)
|
|
96
|
+
df = pd.concat((pd.read_parquet(f) for f in metadata.files))
|
|
97
|
+
return df[
|
|
98
|
+
[col for col in df.columns if col not in ("organisation_id", "created_at")]
|
|
99
|
+
]
|
|
111
100
|
|
|
112
101
|
def create_transformation(
|
|
113
102
|
self, data_request_id: str, crs: str, spatial_resolution: float
|
cecil/models.py
CHANGED
cecil/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.28"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cecil
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.28
|
|
4
4
|
Summary: Python SDK for Cecil Earth
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE.txt
|
|
@@ -8,13 +8,13 @@ Classifier: Development Status :: 4 - Beta
|
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
12
|
Requires-Dist: dask==2025.9.1
|
|
13
13
|
Requires-Dist: pydantic<3.0.0,>=2.11.9
|
|
14
14
|
Requires-Dist: requests<3.0.0,>=2.32.5
|
|
15
15
|
Requires-Dist: rioxarray==0.19.0
|
|
16
16
|
Requires-Dist: snowflake-connector-python[pandas]<4.0.0,>=3.17.4
|
|
17
|
-
Requires-Dist: xarray==2025.
|
|
17
|
+
Requires-Dist: xarray==2025.6.1
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# Cecil SDK
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cecil/__init__.py,sha256=AEcRl73BDSAQe6W0d1PDD87IEcumARtREl7dCVa_YQY,86
|
|
2
|
+
cecil/client.py,sha256=4O72cQaZQPohN56beh5woUNaiejViqbxxDeTgJhnFR8,9184
|
|
3
|
+
cecil/errors.py,sha256=EnyYvFfU_JWYTTRax58bdwOndri2f-HzbqyzxtoV8uo,2100
|
|
4
|
+
cecil/models.py,sha256=du2HflBEb9G-bOziTlO4rp8yQIA5E8ZuH1teynGbR94,3653
|
|
5
|
+
cecil/version.py,sha256=OxG64Q6SDQQGNb5ggPOgDkHI0rY-RjCF92VCMUiyhOQ,23
|
|
6
|
+
cecil/xarray.py,sha256=CvqfJ7NBMLLA4jf73ek2ZtV3sj8xOII__5S0_l3KXYI,2161
|
|
7
|
+
cecil-0.0.28.dist-info/METADATA,sha256=p5DPOsYhQuN436-AIhiypIvbXooUwxvbZ5ME7nfN3yw,2800
|
|
8
|
+
cecil-0.0.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
+
cecil-0.0.28.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
|
|
10
|
+
cecil-0.0.28.dist-info/RECORD,,
|
cecil-0.0.26.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
cecil/__init__.py,sha256=AEcRl73BDSAQe6W0d1PDD87IEcumARtREl7dCVa_YQY,86
|
|
2
|
-
cecil/client.py,sha256=JRTXn6Xc-sHINwUxN6eccpmETWnmkEgQtVp3guk4_h4,9553
|
|
3
|
-
cecil/errors.py,sha256=EnyYvFfU_JWYTTRax58bdwOndri2f-HzbqyzxtoV8uo,2100
|
|
4
|
-
cecil/models.py,sha256=3W892XywxLIZL6TDCHM8_PVRHzR48bJXT5kTV7UU_bY,3509
|
|
5
|
-
cecil/version.py,sha256=Uo7fyxQsD_ez-4T9Di7e8J56WgMQ2DYHGASt3lnRdUY,23
|
|
6
|
-
cecil/xarray.py,sha256=CvqfJ7NBMLLA4jf73ek2ZtV3sj8xOII__5S0_l3KXYI,2161
|
|
7
|
-
cecil-0.0.26.dist-info/METADATA,sha256=8U7ra39gA9Pino-TdyXx0isDW4m3u9LJxiU1geGI8Yg,2800
|
|
8
|
-
cecil-0.0.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
-
cecil-0.0.26.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
|
|
10
|
-
cecil-0.0.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|