pyufunc.github_file_downloader#

pyufunc.github_file_downloader(repo_url, output_dir=None, flatten=False)#

Download files from a GitHub repository.

Parameters:
  • repo_url (str) – URL of a GitHub repository to download from; it can be a blob or tree path

  • output_dir (str) – an output directory where the downloaded files will be saved, when output_dir=None, it defaults to None

  • flatten (bool, optional) – Whether to pull the contents of all subdirectories into the root folder. Defaults to False.

Returns:

total number of files downloaded

Return type:

int