{"library":"spookyhash","title":"spookyhash","type":"library","description":"A Python wrapper for SpookyHash version 2, a fast non-cryptographic hash function. Current version 2.1.1 provides hash128 and hash64 algorithms with an API similar to hashlib. Release cadence is low; last update July 2024.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install spookyhash"],"cli":null},"imports":["from spookyhash import hash128","from spookyhash import hash64","from spookyhash import Hash"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/buhanec/spookyhash","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spookyhash/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spookyhash import hash128, hash64\n\n# Simple hashing\nprint(hash128(b\"hello world\"))\nprint(hash64(b\"hello world\"))\n\n# Incremental hashing (like hashlib)\nfrom spookyhash import Hash\nh = Hash()\nh.update(b\"hello\")\nh.update(b\" world\")\nprint(h.hexdigest())","lang":"python","description":"Quickstart: compute hash of bytes or use incremental hashing.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}