Skip to content

Commit 5ad3931

Browse files
committed
add option to stream in a new bundle
1 parent 64a3421 commit 5ad3931

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dataikuapi/dss/project.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@ def import_bundle_from_archive(self, archive_path):
384384
"/projects/%s/bundles/imported/actions/importFromArchive" % (self.project_key),
385385
params = { "archivePath" : osp.abspath(archive_path) })
386386

387+
def import_bundle_from_stream(self, fp):
388+
files = {'file': fp }
389+
return self.client._perform_empty("POST",
390+
"/projects/%s/bundles/imported/actions/importFromStream" % (self.project_key),
391+
files=files)
392+
387393
def activate_bundle(self, bundle_id):
388394
return self.client._perform_json("POST",
389395
"/projects/%s/bundles/imported/%s/actions/activate" % (self.project_key, bundle_id))

0 commit comments

Comments
 (0)