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!
-
exception scopesim.server.github_utils.ServerError[source]
Bases: Exception
Some error with the server or connection to the server.
-
scopesim.server.github_utils.create_github_url(url: str) → None[source]
From the given url, produce a URL that is compatible with Github’s REST API.
Can handle blob or tree paths.
-
scopesim.server.github_utils.download_github_folder(repo_url: str, output_dir: Path | str = './') → None[source]
Downloads the files and directories in repo_url.
Re-written based on the on the download function
here