import hashlib


def hash(value):
    """Generate a hash from a given value

    :param value:
    :rtype: str

    """
    hash_ = hashlib.md5()
    hash_.update(repr(value).encode('utf8'))
    return hash_.hexdigest()