poli.core.util.files.download_files_from_github

poli.core.util.files.download_files_from_github#

Utilities for downloading files from GitHub repositories.

This module requires the PyGithub package, install it with:

pip install PyGithub

Most of this code was taken and adapted from: https://gist.github.com/pdashford/2e4bcd4fc2343e2fd03efe4da17f577d?permalink_comment_id=4274705#gistcomment-4274705

Functions

download_file_from_github_repository(...[, ...])

Download a file from a Github repository.

get_sha_for_tag(repository, tag)

Returns a commit PyGithub object for the specified repository and tag.