:mod:`lookout.style.cloner` =========================== .. py:module:: lookout.style.cloner .. autoapi-nested-parse:: Cloning utilities for git repositories. Module Contents --------------- .. py:class:: ParallelWriteToLogs Bases::class:`joblib.Parallel` Parallel which logs progress using logger. .. attribute:: _log .. method:: _print(self, msg, msg_args) Display the message using `self._log.info`. .. py:class:: Cloner(location:str, n_jobs:Optional[int]=-1) Class to clone a list of git repositories in parallel. .. attribute:: _log .. method:: clone(self, repositories:Sequence[str]) Run repositories cloning in parallel. :param repositories: List of URLs to clone. :return: Mapping from the provided URLs to the file system paths of the successfully downloaded repositories. .. staticmethod:: get_repo_name(url:str) Convert URL to repository name. :param url: Repository URL to get name for. :return: Generated repository name. .. staticmethod:: _clone_repository(repository:str, repos_cache:str)