MCPcopy Create free account
hub / github.com/psf/cachecontrol / encode

Method encode

cachecontrol/caches/file_cache.py:55–56  ·  view source on GitHub ↗
(x: str)

Source from the content-addressed store, hash-verified

53
54 @staticmethod
55 def encode(x: str) -> str:
56 return hashlib.sha224(x.encode()).hexdigest()
57
58 def _fn(self, name: str) -> str:
59 # NOTE: This method should not change as some may depend on it.

Callers 13

_fnMethod · 0.95
test_key_lengthMethod · 0.80
vary_acceptMethod · 0.80
update_etagMethod · 0.80
etagMethod · 0.80
cache_60Method · 0.80
no_cacheMethod · 0.80
streamMethod · 0.80
__call__Method · 0.80
dumpsMethod · 0.80
loadsMethod · 0.80

Calls

no outgoing calls

Tested by 9

test_key_lengthMethod · 0.64
vary_acceptMethod · 0.64
update_etagMethod · 0.64
etagMethod · 0.64
cache_60Method · 0.64
no_cacheMethod · 0.64
streamMethod · 0.64
__call__Method · 0.64