Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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
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()