pyufunc.github_private_file_downloader#
- pyufunc.github_private_file_downloader(raw_url, token, dest_path)#
Download a file (e.g. a ZIP) from a private GitHub repository given its raw/blob URL, using a personal access token for authentication.
- Parameters:
raw_url (str) – Either a raw.githubusercontent.com URL: https://raw.githubusercontent.com/{owner}/{repo}/{ref}/{path} or a GitHub blob URL: github/{owner}/{repo}/blob/{ref}/{path}
token (str) – Personal access token with repo scope.
dest_path (str) – Local path where the file will be written.