MCPcopy Index your code
hub / github.com/python/cpython / fetch_zip

Function fetch_zip

PCbuild/get_external.py:56–68  ·  view source on GitHub ↗
(commit_hash, zip_dir, *, org='python', binary=False, verbose)

Source from the content-addressed store, hash-verified

54 return resp
55
56def fetch_zip(commit_hash, zip_dir, *, org='python', binary=False, verbose):
57 repo = 'cpython-bin-deps' if binary else 'cpython-source-deps'
58 url = f'https://github.com/{org}/{repo}/archive/{commit_hash}.zip'
59 reporthook = None
60 if verbose:
61 reporthook = print
62 zip_dir.mkdir(parents=True, exist_ok=True)
63 filename, _headers = retrieve_with_retries(
64 url,
65 zip_dir / f'{commit_hash}.zip',
66 reporthook
67 )
68 return filename
69
70
71def fetch_release(tag, tarball_dir, *, org='python', verbose=False):

Callers 1

mainFunction · 0.85

Calls 2

retrieve_with_retriesFunction · 0.85
mkdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…