scopesim.server.github_utils module

Used only by the database submodule.

Original comment for these functions:

2022-04-10 (KL) Code taken directly from https://github.com/sdushantha/gitdir Adapted for ScopeSim usage. Many thanks to the authors!

scopesim.server.github_utils.create_github_url(url: str) None[source]

From the given url, produce a URL compatible with Github’s REST API.

Can handle blob or tree paths.

scopesim.server.github_utils.download_github_folder(repo_url: str, output_dir: Union[Path, str] = './') None[source]

Download the files and directories in repo_url.

Re-written based on the on the download function here