MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / download_asset

Method download_asset

github/GitReleaseAsset.py:166–175  ·  view source on GitHub ↗

Download asset to the path or return an iterator for the stream.

(
        self, path: None | str = None, chunk_size: int | None = 1
    )

Source from the content-addressed store, hash-verified

164 return True
165
166 def download_asset(
167 self, path: None | str = None, chunk_size: int | None = 1
168 ) -> tuple[int, dict[str, Any], Iterator] | None:
169 """
170 Download asset to the path or return an iterator for the stream.
171 """
172 if path is None:
173 return self._requester.getStream(self.url, chunk_size=chunk_size)
174 self._requester.getFile(self.url, path=path, chunk_size=chunk_size)
175 return None
176
177 def update_asset(self, name: str, label: str = "") -> GitReleaseAsset:
178 """

Callers 3

testDownloadMethod · 0.80
testDownloadAssetFileMethod · 0.80

Calls 2

getStreamMethod · 0.80
getFileMethod · 0.80

Tested by

no test coverage detected