hashlib.sha1()

hashlib.sha1()

Returns a sha1 hash object; optionally initialized with a string