MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / download_release

Method download_release

aura/package.py:114–133  ·  view source on GitHub ↗
(
        self,
        dest,
        all=True,
        **filters  # TODO: add tests for the filters
    )

Source from the content-addressed store, hash-verified

112 yield Requirement(req_line)
113
114 def download_release(
115 self,
116 dest,
117 all=True,
118 **filters # TODO: add tests for the filters
119 ):
120 dest = Path(dest)
121 files = []
122
123 filtered = self.filter_package_types(**filters)
124
125 if not all:
126 filtered = filtered[:1]
127
128 for url in filtered:
129 with open(dest / url["filename"], "wb") as fd:
130 cache.FileDownloadCache.proxy(url=url["url"], fd=fd)
131 files.append(url)
132
133 return files
134
135 @contextmanager
136 def url2local(self, url: str) -> Generator[Path, None, None]:

Callers 2

test_package_retrievalFunction · 0.80
get_pathsMethod · 0.80

Calls 2

filter_package_typesMethod · 0.95
proxyMethod · 0.45

Tested by 1

test_package_retrievalFunction · 0.64