data.extract

Module Contents

Functions

maybe_log(path, log=True)

extract_tar(path, folder, mode='r:gz', log=True)

Extracts a tar archive to a specific folder.

extract_zip(path, folder, log=True)

Extracts a zip archive to a specific folder.

extract_bz2(path, folder, log=True)

extract_gz(path, folder, log=True)

data.extract.maybe_log(path, log=True)[source]
data.extract.extract_tar(path, folder, mode='r:gz', log=True)[source]

Extracts a tar archive to a specific folder.

Args:

path (string): The path to the tar archive. folder (string): The folder. mode (string, optional): The compression mode. (default: "r:gz") log (bool, optional): If False, will not print anything to the

console. (default: True)

data.extract.extract_zip(path, folder, log=True)[source]

Extracts a zip archive to a specific folder.

Args:

path (string): The path to the tar archive. folder (string): The folder. log (bool, optional): If False, will not print anything to the

console. (default: True)

data.extract.extract_bz2(path, folder, log=True)[source]
data.extract.extract_gz(path, folder, log=True)[source]