Extracting Archive files

z035071
Level 1
Extracting Archive files

I'm trying to extract set of archive files with different formats like 
[".zip", ".7z", ".rar", ".tar", ".gz", ".bz2", ".xz", ".iso", ".ZIP", ".7Z", ".RAR", ".TAR", ".GZ", ".BZ2", ".XZ", ".ISO"]

I was using 7z executable api to extract locally in python . I could see that there's no in built execution api like 7z. Is there anyway to extract these zipped folders in dataiku using python? 

 

I also tried Patoolib which is giving permission error. 

0 Kudos
1 Reply
Turribeach

You will be far better off using a Shell Recipe and the built-in OS tools (or additional OS level packages) to extract files. Then move to a Python recipe to process the extracted files. 

0 Kudos