{ "info": { "author": "Derek Wilson", "author_email": "dwilson@domaintools.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development" ], "description": "spooky\n======\n\nSpookyHash V2 is a fast x64 targeted hash developed by Bob Jenkins. This\npython library is a wrapper around Bob Jenkin's public domain c++\nimplementation (current as of August 2012).\n\nIn python2 results are all `long` type for consistency despite the fact that\n32bit ints do not need to be.\n\nThe bit width features are a convenience to save a masking operation if you\nneed shorter hashes. There isn't a significant performance difference between\nthe hash size options as they are all computed internally as 128bit hashes.\n\nUsage\n-----\n\n >>> from spooky import hash128, hash64, hash32\n >>> s = 'this is only a test...'\n >>> hash128(s) #128bit python int from 2 unsigned long long ints in c\n 94655121727368234505791352840874203973\n\n >>> hash64(s) #64bit int\n 13961228348271205189\n\n >>> hash32(s) #32bit int\n 2261883717\n\n >>> hash32(s) == hash64(s) & 0xffffffff == hash128(s) & 0xffffffff\n True\n\n >>> from binascii import hexlify #if you prefer hex strings to ints\n >>> hexlify(hash128(s).to_bytes(16, 'little'))\n b'459bd186363fc0c1f1da8d27d0e93547'", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DomainTools/spooky", "keywords": "jenkins spooky hash v2 checksum noncryptographic", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "spooky", "package_url": "https://pypi.org/project/spooky/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spooky/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/DomainTools/spooky" }, "release_url": "https://pypi.org/project/spooky/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "Wrapper for SpookyHash V2", "version": "2.0.0" }, "last_serial": 928983, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "aa692d2dc2ff1e27c9b301d442717d38", "sha256": "9d9ce6f52d57d63d136d87d834cc81e8f4cd65d1f2ca1f5b2e35eee5c5f048f7" }, "downloads": -1, "filename": "spooky-2.0.0.tar.gz", "has_sig": false, "md5_digest": "aa692d2dc2ff1e27c9b301d442717d38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2013-11-25T19:59:09", "url": "https://files.pythonhosted.org/packages/c5/1c/56e3589d67e25b76bdc8937585fd4112c9d4a04eff120723111631c5ca36/spooky-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aa692d2dc2ff1e27c9b301d442717d38", "sha256": "9d9ce6f52d57d63d136d87d834cc81e8f4cd65d1f2ca1f5b2e35eee5c5f048f7" }, "downloads": -1, "filename": "spooky-2.0.0.tar.gz", "has_sig": false, "md5_digest": "aa692d2dc2ff1e27c9b301d442717d38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2013-11-25T19:59:09", "url": "https://files.pythonhosted.org/packages/c5/1c/56e3589d67e25b76bdc8937585fd4112c9d4a04eff120723111631c5ca36/spooky-2.0.0.tar.gz" } ] }