Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._internal.commands.hash Namespace Reference

Data Structures

class  HashCommand
 

Functions

str _hash_of_file (str path, str algorithm)
 

Variables

 logger = logging.getLogger(__name__)
 

Function Documentation

◆ _hash_of_file()

str _hash_of_file ( str  path,
str  algorithm 
)
protected
Return the hash digest of a file.

Definition at line 53 of file hash.py.

53def _hash_of_file(path: str, algorithm: str) -> str:
54 """Return the hash digest of a file."""
55 with open(path, "rb") as archive:
56 hash = hashlib.new(algorithm)
57 for chunk in read_chunks(archive):
58 hash.update(chunk)
59 return hash.hexdigest()
for i

References i.

Referenced by HashCommand.run().

Here is the caller graph for this function:

Variable Documentation

◆ logger

logger = logging.getLogger(__name__)

Definition at line 12 of file hash.py.