MCPcopy
hub / github.com/subframe7536/maple-font / parse_github_mirror

Function parse_github_mirror

source/py/utils.py:80–84  ·  view source on GitHub ↗
(github_mirror: str)

Source from the content-addressed store, hash-verified

78
79
80def parse_github_mirror(github_mirror: str) -> str:
81 github = environ.get("GITHUB") # custom github mirror, for CN users
82 if not github:
83 github = github_mirror
84 return f"https://{github}"
85
86
87def download_file(url: str, target_path: str):

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected