MCPcopy Index your code
hub / github.com/dask/dask / _tokenize

Function _tokenize

dask/tokenize.py:33–39  ·  view source on GitHub ↗
(*args: object, **kwargs: object)

Source from the content-addressed store, hash-verified

31
32
33def _tokenize(*args: object, **kwargs: object) -> str:
34 token: object = _normalize_seq_func(args)
35 if kwargs:
36 token = token, _normalize_seq_func(sorted(kwargs.items()))
37
38 # Pass `usedforsecurity=False` to support FIPS builds of Python
39 return hashlib.md5(str(token).encode(), usedforsecurity=False).hexdigest()
40
41
42tokenize_lock = threading.RLock()

Callers 2

tokenizeFunction · 0.85
tokenizeFunction · 0.85

Calls 2

_normalize_seq_funcFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…