def get_archiver(self, kind):

    archivers = {
        'tar': TarArchiver,
        'tbz2': Tbz2Archiver,
        'tgz': TgzArchiver,
        'zip': ZipArchiver,
    }

    return archivers[kind]()
Returns instance of archiver class specific to given kind
dataset/ETHPy150Open codeinn/vcs/vcs/utils/archivers.py/get_archiver