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

Data Structures

class  Cache
 
class  CacheEntry
 
class  EphemWheelCache
 
class  SimpleWheelCache
 
class  WheelCache
 

Functions

str _hash_dict (Dict[str, str] d)
 

Variables

 logger = logging.getLogger(__name__)
 
str ORIGIN_JSON_NAME = "origin.json"
 

Detailed Description

Cache Management

Function Documentation

◆ _hash_dict()

str _hash_dict ( Dict[str, str]  d)
protected
Return a stable sha224 of a dictionary.

Definition at line 26 of file cache.py.

26def _hash_dict(d: Dict[str, str]) -> str:
27 """Return a stable sha224 of a dictionary."""
28 s = json.dumps(d, sort_keys=True, separators=(",", ":"), ensure_ascii=True)
29 return hashlib.sha224(s.encode("ascii")).hexdigest()
30
31
for i

References i.

Variable Documentation

◆ logger

logger = logging.getLogger(__name__)

Definition at line 21 of file cache.py.

◆ ORIGIN_JSON_NAME

str ORIGIN_JSON_NAME = "origin.json"

Definition at line 23 of file cache.py.