Skip to content

Commit 09b794d

Browse files
Merge pull request #113 from dataiku/task/dss90-single-project-summary
Get the summary of a single project
2 parents 20a2bc1 + be59914 commit 09b794d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dataikuapi/dss/project.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ def __init__(self, client, project_key):
3131
self.client = client
3232
self.project_key = project_key
3333

34+
def get_summary(self):
35+
"""
36+
Returns a summary of the project. The summary is a read-only view of some of the state of the project.
37+
You cannot edit the resulting dict and use it to update the project state on DSS, you must use the other more
38+
specific methods of this :class:`dataikuapi.dss.project.DSSProject` object
39+
40+
:returns: a dict containing a summary of the project. Each dict contains at least a 'projectKey' field
41+
:rtype: dict
42+
"""
43+
return self.client._perform_json("GET", "/projects/%s" % self.project_key)
3444

3545
def get_project_folder(self):
3646
"""

0 commit comments

Comments
 (0)