atlasai-dstoolkit-client 0.0.4__py3-none-any.whl → 0.0.6__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.
- atlasai/toolkit/feature.py +11 -6
- {atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/METADATA +2 -1
- {atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/RECORD +6 -6
- {atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/LICENSE.txt +0 -0
- {atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/WHEEL +0 -0
- {atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/top_level.txt +0 -0
atlasai/toolkit/feature.py
CHANGED
@@ -48,7 +48,7 @@ class FeatureExport:
|
|
48
48
|
return self._search.search
|
49
49
|
|
50
50
|
def details(self):
|
51
|
-
if self.export is None or self.export.status not in ['
|
51
|
+
if self.export is None or self.export.get('status') not in ['succeeded', 'failed']:
|
52
52
|
self._export = self._details()
|
53
53
|
return self.export
|
54
54
|
|
@@ -57,10 +57,15 @@ class FeatureExport:
|
|
57
57
|
return self.export
|
58
58
|
|
59
59
|
def results(self, limit=None) -> pd.DataFrame:
|
60
|
-
if self.export
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
if not self.export:
|
61
|
+
return pd.DataFrame([])
|
62
|
+
|
63
|
+
if self.export.get('status') not in ['succeeded', 'failed']:
|
64
|
+
raise Exception(f'Export state is: {self.export.get("status")}')
|
65
|
+
path = None
|
66
|
+
grouped = self.export.get('search_result', {}).get('grouped', [])
|
67
|
+
if grouped:
|
68
|
+
path = grouped[0]['url']
|
64
69
|
if not path:
|
65
70
|
raise Exception('Path not found')
|
66
71
|
|
@@ -70,6 +75,6 @@ class FeatureExport:
|
|
70
75
|
return df
|
71
76
|
|
72
77
|
def _details(self):
|
73
|
-
resource = f'feature/export/{self.
|
78
|
+
resource = f'feature/export/{self.id}/details'
|
74
79
|
_, data = api._get(resource=resource)
|
75
80
|
return data['data']
|
{atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: atlasai-dstoolkit-client
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: UNKNOWN
|
5
5
|
Home-page: UNKNOWN
|
6
6
|
Author: AtlasAI SWE
|
@@ -12,6 +12,7 @@ License-File: LICENSE.txt
|
|
12
12
|
Requires-Dist: arrow (<2.0.0,>=1.3.0)
|
13
13
|
Requires-Dist: furl (<3.0.0,>=2.1.2)
|
14
14
|
Requires-Dist: pandas (<3.0.0,>=2.2.3)
|
15
|
+
Requires-Dist: pyarrow (>=19.0.1)
|
15
16
|
Requires-Dist: python-dotenv (<2.0.0,>=1.0.1)
|
16
17
|
Requires-Dist: requests (<=3.0.0,>=2.32.3)
|
17
18
|
Requires-Dist: semver (<4.0.0,>=3.0.2)
|
{atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/RECORD
RENAMED
@@ -2,13 +2,13 @@ atlasai/toolkit/__init__.py,sha256=szu5LHZ41ccWztCI2LvQ3QnZRybosgTbU3yd6tS7cUw,9
|
|
2
2
|
atlasai/toolkit/api.py,sha256=BvO-gLRmbmkKduwbbADjcLlIkS9blzfM_cbMR4DhQmU,5269
|
3
3
|
atlasai/toolkit/constants.py,sha256=sE0PeFa9_htCPVFADHbkyPIz3QOai0tAIA5IiiZI8wA,329
|
4
4
|
atlasai/toolkit/fabric.py,sha256=6aFR2PGQc9P3Qa07WdBg9eKoUzU8n2y_-gGjYcyMrWY,1921
|
5
|
-
atlasai/toolkit/feature.py,sha256=
|
5
|
+
atlasai/toolkit/feature.py,sha256=f75nlELRgsVUYaVMKl055Q4ob3C-eVGp6xJHVzohsJk,2418
|
6
6
|
atlasai/toolkit/init.py,sha256=JkdJ6QGdYWrq65jgz2pn5RYXUeUe2Ez88_-eMf5CNi0,1100
|
7
7
|
atlasai/toolkit/login.py,sha256=n4ydfo9qCsmbZq6er1xeljBD76vdTJGjbhYHMmOyDbQ,3061
|
8
8
|
atlasai/toolkit/requests.py,sha256=X86nIo07hAjUlilZcZ1lV8RB7KOsTKbTGtcY_SpFEXY,1223
|
9
9
|
atlasai/toolkit/utils.py,sha256=lYh3P2XOshRgHCjFeXJ0FOJWQW64sddgx8c2kL6Wqwc,1566
|
10
|
-
atlasai_dstoolkit_client-0.0.
|
11
|
-
atlasai_dstoolkit_client-0.0.
|
12
|
-
atlasai_dstoolkit_client-0.0.
|
13
|
-
atlasai_dstoolkit_client-0.0.
|
14
|
-
atlasai_dstoolkit_client-0.0.
|
10
|
+
atlasai_dstoolkit_client-0.0.6.dist-info/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
11
|
+
atlasai_dstoolkit_client-0.0.6.dist-info/METADATA,sha256=2ct5cuCh8aGH8sTUCxuVj6jaieu8kQXjPuAhUVRbF88,1335
|
12
|
+
atlasai_dstoolkit_client-0.0.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
13
|
+
atlasai_dstoolkit_client-0.0.6.dist-info/top_level.txt,sha256=HRTbErU8nmHFDaJJ5R_XYbwpt21dqdjDpSva8xyy_0k,8
|
14
|
+
atlasai_dstoolkit_client-0.0.6.dist-info/RECORD,,
|
{atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/LICENSE.txt
RENAMED
File without changes
|
File without changes
|
{atlasai_dstoolkit_client-0.0.4.dist-info → atlasai_dstoolkit_client-0.0.6.dist-info}/top_level.txt
RENAMED
File without changes
|