We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64a3421 commit 5ad3931Copy full SHA for 5ad3931
dataikuapi/dss/project.py
@@ -384,6 +384,12 @@ def import_bundle_from_archive(self, archive_path):
384
"/projects/%s/bundles/imported/actions/importFromArchive" % (self.project_key),
385
params = { "archivePath" : osp.abspath(archive_path) })
386
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
+
393
def activate_bundle(self, bundle_id):
394
return self.client._perform_json("POST",
395
"/projects/%s/bundles/imported/%s/actions/activate" % (self.project_key, bundle_id))
0 commit comments