snakeoil.compression package¶
Module contents¶
- class snakeoil.compression.ArComp(*args, ext, **kwargs)[source]¶
Bases:
object
Generic archive and compressed file format support.
- binary = None¶
- default_unpack_cmd = None¶
- known_exts = {'.7Z': <class 'snakeoil.compression._7Z'>, '.7z': <class 'snakeoil.compression._7Z'>, '.LHA': <class 'snakeoil.compression._LHA'>, '.LHa': <class 'snakeoil.compression._LHA'>, '.RAR': <class 'snakeoil.compression._Rar'>, '.Z': <class 'snakeoil.compression._GZ'>, '.ZIP': <class 'snakeoil.compression._Zip'>, '.a': <class 'snakeoil.compression._Ar'>, '.bz': <class 'snakeoil.compression._BZ2'>, '.bz2': <class 'snakeoil.compression._BZ2'>, '.deb': <class 'snakeoil.compression._Ar'>, '.gz': <class 'snakeoil.compression._GZ'>, '.jar': <class 'snakeoil.compression._Zip'>, '.lha': <class 'snakeoil.compression._LHA'>, '.lzh': <class 'snakeoil.compression._LHA'>, '.lzma': <class 'snakeoil.compression._LZMA'>, '.rar': <class 'snakeoil.compression._Rar'>, '.tar': <class 'snakeoil.compression._Tar'>, '.tar.Z': <class 'snakeoil.compression._TarGZ'>, '.tar.bz2': <class 'snakeoil.compression._TarBZ2'>, '.tar.gz': <class 'snakeoil.compression._TarGZ'>, '.tar.lzma': <class 'snakeoil.compression._TarLZMA'>, '.tar.xz': <class 'snakeoil.compression._TarXZ'>, '.tar.z': <class 'snakeoil.compression._TarGZ'>, '.tbz': <class 'snakeoil.compression._TarBZ2'>, '.tbz2': <class 'snakeoil.compression._TarBZ2'>, '.tgz': <class 'snakeoil.compression._TarGZ'>, '.txz': <class 'snakeoil.compression._TarXZ'>, '.xz': <class 'snakeoil.compression._XZ'>, '.z': <class 'snakeoil.compression._GZ'>, '.zip': <class 'snakeoil.compression._Zip'>}¶
- exception snakeoil.compression.ArCompError(msg, code=-1)[source]¶
Bases:
UserException
Generic archive and compressed file error.