(namespace, name)
return UUID(bytes=hash[:16], version=5)
Generate a UUID from the SHA-1 hash of a namespace UUID and a name.
Generate a UUID from the SHA-1 hash of a namespace UUID and a name.
Generate a UUID from the SHA - 1 hash of a namespace UUID and a name .
def uuid5(namespace, name):
    """Generate a UUID from the SHA-1 hash of a namespace UUID and a name."""
    from hashlib import sha1
    hash = sha1(namespace.bytes + name).digest()
    return UUID(bytes=hash[:16], version=5)
def uuid5 ( namespace , name ) : from hashlib import sha1 hash = sha1 ( namespace . bytes + name ) . digest ( ) return UUID ( bytes = hash [ : 16 ] , version = 5 )