semvec/pypi-packages huggingface dataset:
hashdial 1.0.3
A module implementing hash based decision making
Requires Python: >3.4
Keywords: hashdial hashing decision

Implements, through hashing, decision making that is deterministic on input, but probabilistic across a set of inputs.

For example, suppose a set of components in a distributed system wish to emit a log entry for 1% of requests - but each
component should log the *same* 1% of requests, they could do so as such::

    if hashdial.decide(request.id, 0.01):
        log_request(request)

Take a look at `the documentation <http://py-hashdial.readthedocs.io/en/latest/>`__ for more.