Is there a Python package similar to Perl Archive :: Extract?

I am looking for a package that will automatically detect the type and extract the archive (zip, tar.gz, etc.). In Perl, this is easy - in Python, I cannot find any simple package / class for this ...

+3
source share
2 answers

Going off Mark Bayer's answer , perhaps you can link it all together mimetypes(also from the standard library). You can determine the type of file and process it accordingly. The world needs a version of Python Archive::Extract, and we want you to write it!

+1
source

In Python you can use:

, . , , , .

+1

Source: https://habr.com/ru/post/1739220/


All Articles