Pedro Vide Simoes
09/10/2024, 2:28 PMNadav Steindler
09/10/2024, 2:46 PMPedro Vide Simoes
09/10/2024, 3:06 PMboto3.resource
initialized to fetch from the Lakefs URL
For context, this is a function inside a @classmethod method.
Destination path is a local path and key_string the path to the file in Lakefs
client.Bucket(bucket_name).download_file(key_string, destination_path)
Pedro Vide Simoes
09/10/2024, 3:08 PMwith multiprocessing.Pool(self.njobs) as pool:
return list(tqdm(pool.imap(self.callback_function, data), total=len(data), desc=desc))
Where self.callback_function is the function that calls the class.download_function(*args) where the previous snippet isNiro
09/10/2024, 4:21 PMPedro Vide Simoes
09/10/2024, 4:28 PMPedro Vide Simoes
09/11/2024, 7:32 AMOffir Cohen
09/11/2024, 8:44 AMNiro
09/11/2024, 12:57 PM