dask.tokenize.tokenize#
- dask.tokenize.tokenize(*args: object, ensure_deterministic: bool | None = None, **kwargs: object) str[source]#
Deterministic token
>>> tokenize([1, 2, '3']) '06961e8de572e73c2e74b51348177918'
>>> tokenize('Hello') == tokenize('Hello') True
- Parameters:
- args, kwargs:
objects to tokenize
- ensure_deterministic: bool, optional
If True, raise TokenizationError if the objects cannot be deterministically tokenized, e.g. two identical objects will return different tokens. Defaults to the tokenize.ensure-deterministic configuration parameter.