Import deleted project from bundle
![Raj7974](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar7.png)
Raj7974
Registered Posts: 8 ✭✭✭
Hi,
I have downloaded bundle of project as zip file and deleted that project, how to import that project again through bundle using python api.
Thanks,
Raj
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 Dataiker
Hi @Raj7974
,You can use the following sample to import the bundle as a project:
https://doc.dataiku.com/dss/latest/python-api/projects.html#importing
import dataiku client = dataiku.api_client() #include if running outside of DSS #dataiku.set_remote_dss("http(s/)://dss-hostname:port/", "api-key-here) with open("/path/to/dss-bundle-PROJECT-bundle-export.zip", "rb") as f: client.prepare_project_import(f).execute()