-
Notifications
You must be signed in to change notification settings - Fork 1
sd_utils.github.fileio
pencil-pusher edited this page Apr 19, 2021
·
3 revisions
API for accessing files from github
get_file(owner: str, repo: str, file_path: str, token: str = "") -> strGets a file from a repo
Arguments:
-
ownerstr - the owner of the repo -
repostr - the name of the repo -
file_pathstr - the path of the file relative to the root of the repo -
tokenstr - the github token used to authenticate. failure to provide one can result in rate limits or no access to a private repo