File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ from dataikuapi .dss .dataset import DSSDataset
2+
3+
4+ class DSSFeatureGroupListItem (object ):
5+ def __init__ (self , client , project_key , name ):
6+ self .client = client
7+ self .project_key = project_key
8+ self .name = name
9+
10+ @property
11+ def id (self ):
12+ return self .project_key + "." + self .name
13+
14+ def get_as_dataset (self ):
15+ return DSSDataset (self .client , self .project_key , self .name )
16+
17+
118class DSSFeatureStore (object ):
219 def __init__ (self , client ):
320 """
@@ -14,4 +31,5 @@ def list_feature_groups(self):
1431 :return: list of dataset names
1532 :rtype: list of str
1633 """
17- return self .client ._perform_json ("GET" , "/feature-store/feature-groups/list" )
34+ items = self .client ._perform_json ("GET" , "/feature-store/feature-groups" )
35+ return [DSSFeatureGroupListItem (self .client , item ["projectKey" ], item ["name" ]) for item in items ]
You can’t perform that action at this time.
0 commit comments