I can to unzip a file if file is a .zip and unrar file if my file type is .rar. How i can do this work with python 2.7?
.zip
.rar
Try the pyunpack package:
from pyunpack import Archive Archive('a.zip').extractall('/path/to')