artellapipe.launcher.utils.download module

Module that contains implementation to handle downloads in Artella Launcher

artellapipe.launcher.utils.download.chunk_read(response, destination, console, chunk_size=8192, report_hook=None, updater=None)

Function that reads a chunk of a dowlnoad operation :param response: str :param destination: str :param console: ArtellaLauncher :param chunk_size: int :param report_hook: fn :param updater: ArtellaUpdater :return: int

artellapipe.launcher.utils.download.chunk_report(bytes_so_far, total_size, console, updater=None)

Function that updates progress bar with current chunk :param bytes_so_far: int :param total_size: int :param console: ArtellaConsole :param updater: ArtellaUpdater :return:

artellapipe.launcher.utils.download.download_file(filename, destination, console=None, updater=None)

Downloads given file into given target path :param filename: str :param destination: str :param console: ArtellaConsole :param updater: ArtellaUpdater :return: bool

artellapipe.launcher.utils.download.unzip_file(filename, destination, console, remove_first=True, remove_sub_folders=None)

Unzips given file in given folder :param filename: str :param destination: str :param console: ArtellaConsole :param remove_first: bool :param remove_sub_folders: bool