def _download_artifacts_sha(self, package_name: str, package_version: str) -> typing.Generator[tuple, None, None]:
for artifact_name, artifact_url in self._simple_repository_list_artifacts(package_name):<EOL><INDENT>artifact_name.lower()<EOL>if not artifact_name.startswith(f"<STR_LIT>"):<EOL><INDENT>_LOGGER.debug(<EOL>"<STR_LIT>",<EOL>artifact_name,<EOL>package_version,<EOL>package_name,<EOL>)<EOL>continue<EOL><DEDENT>url_parts = artifact_url.rsplit("<STR_LIT:#>", maxsplit=<NUM_LIT:1>)<EOL>if len(url_parts) == <NUM_LIT:2> and url_parts[<NUM_LIT:1>].startswith("<STR_LIT>"):<EOL><INDENT>_LOGGER.debug("<STR_LIT>", url_parts[<NUM_LIT:1>])<EOL>yield artifact_name, url_parts[<NUM_LIT:1>][len("<STR_LIT>"):]<EOL>continue<EOL><DEDENT>_LOGGER.debug("<STR_LIT>", artifact_url)<EOL>response = requests.get(artifact_url, verify=self.verify_ssl, stream=True)<EOL>response.raise_for_status()<EOL>digest = hashlib.sha256()<EOL>for chunk in response.iter_content(chunk_size=<NUM_LIT>):<EOL><INDENT>if chunk:  <EOL><INDENT>digest.update(chunk)<EOL><DEDENT><DEDENT>digest = digest.hexdigest()<EOL>_LOGGER.debug("<STR_LIT>", artifact_url, digest)<EOL>yield artifact_name, digest<EOL><DEDENT>
Download the given artifact from Warehouse and compute its SHA.