{ "info": { "author": "Sergey Grankin", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Cython", "Topic :: Software Development", "Topic :: Software Development :: Libraries" ], "description": "spooky\\_hash\n============\n\n SpookyHash is a public domain noncryptographic hash function\n producing well-distributed 128-bit hash values for byte arrays of\n any length.\\ `1 `__\n\nThis python library is a Cython wrapper for the original C++\nimplementation. There are both (fast) one-shot hash functions and\n(slower) hashlib-like hash objects.\n\nUsage\n-----\n\n.. code:: python\n\n >>> import spooky_hash\n >>> print spooky_hash.hash32('hello world')\n 2617184861\n >>> print long(spooky_hash.Hash32('hello ').update('world'))\n 2617184861\n\n >>> print spooky_hash.hash64('hello world')\n 14865987102431973981\n >>> print long(spooky_hash.Hash64('hello ').update('world'))\n 14865987102431973981\n >>> print spooky_hash.Hash64('hello ').update('world').hexdigest()\n 5d12ff9b81984ece\n\n >>> print spooky_hash.hash128_long('hello world')\n 123716849286372619103118623513034416523\n >>> print long(spooky_hash.Hash128('hello ').update('world'))\n 123716849286372619103118623513034416523\n >>> print spooky_hash.Hash128('hello ').update('world').hexdigest()\n 5d12ff9b81984ece25103f0dee88e18b\n >>> import binascii\n >>> print binascii.hexlify(spooky_hash.hash128('hello world'))\n 5d12ff9b81984ece25103f0dee88e18b\n\n >>> print spooky_hash.hash32('hello world', seed=4)\n 4130951021\n >>> print spooky_hash.Hash64('hello ', seed=8).update('world').hexdigest()\n e54162c401e00c21\n >>> print spooky_hash.Hash128('hello ', seed1=15, seed2=16).update('world').hexdigest()\n 1d46e376a416468b6c5c3a8f3798042b\n\nSee also:\n---------\n\nhttp://burtleburtle.net/bob/hash/spooky.html", "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/sgrankin/spooky_hash", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "spooky_hash", "package_url": "https://pypi.org/project/spooky_hash/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spooky_hash/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sgrankin/spooky_hash" }, "release_url": "https://pypi.org/project/spooky_hash/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for SpookyHash V2", "version": "1.0.1" }, "last_serial": 1009793, "releases": { "1.0": [ { "comment_text": "built for Darwin-13.0.0", "digests": { "md5": "1eb56310e26829bcd267e8ccbb9b89fb", "sha256": "d072f366eb9b94d3ad1b2d97345a226a740f38cdfb44937a53fbc79e2af71b9f" }, "downloads": -1, "filename": "spooky_hash-1.0.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "1eb56310e26829bcd267e8ccbb9b89fb", "packagetype": "bdist_dumb", "python_version": "2.7", "requires_python": null, "size": 19849, "upload_time": "2014-01-23T06:26:22", "url": "https://files.pythonhosted.org/packages/6e/7e/e41bab52690e5924e0af4a86f96af5a1e166b751801be0d048f2a8d17313/spooky_hash-1.0.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "6d0e1ff0443741b23d8ddea545c3eb95", "sha256": "d437beb9352043ca9370e28927fc5ef71ac13662239b1e248aeac1a8b90eb925" }, "downloads": -1, "filename": "spooky_hash-1.0.tar.gz", "has_sig": false, "md5_digest": "6d0e1ff0443741b23d8ddea545c3eb95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45073, "upload_time": "2014-01-23T06:26:19", "url": "https://files.pythonhosted.org/packages/0c/ac/85a8556cf4304aed8650ae92b2f7de47b29fb57a1896063f814eac5f1035/spooky_hash-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "built for Darwin-13.0.0", "digests": { "md5": "09bee68364b7a3ac8a54c4ce2a244257", "sha256": "0ff51d2cf1af427caa8788323d3c38ab389617736777240ac73e63cef68f0955" }, "downloads": -1, "filename": "spooky_hash-1.0.1.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "09bee68364b7a3ac8a54c4ce2a244257", "packagetype": "bdist_dumb", "python_version": "2.7", "requires_python": null, "size": 21188, "upload_time": "2014-02-24T05:08:23", "url": "https://files.pythonhosted.org/packages/da/a0/68ba85b86ff79ba93b3a4cfcedb540deb74e7b8330dae8e962284b644131/spooky_hash-1.0.1.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "0bd58af48a59f57560aee8bcc5bff262", "sha256": "06a193a180c93557a5ce0ac3c0388ae7edb00ff7e2dccb51d270cc5e017da486" }, "downloads": -1, "filename": "spooky_hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0bd58af48a59f57560aee8bcc5bff262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39154, "upload_time": "2014-02-24T05:08:21", "url": "https://files.pythonhosted.org/packages/29/1b/487d4c1abddd2b07536c234e244aac5544e01ee3a1e2f4fe92d09683404c/spooky_hash-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "built for Darwin-13.0.0", "digests": { "md5": "09bee68364b7a3ac8a54c4ce2a244257", "sha256": "0ff51d2cf1af427caa8788323d3c38ab389617736777240ac73e63cef68f0955" }, "downloads": -1, "filename": "spooky_hash-1.0.1.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "09bee68364b7a3ac8a54c4ce2a244257", "packagetype": "bdist_dumb", "python_version": "2.7", "requires_python": null, "size": 21188, "upload_time": "2014-02-24T05:08:23", "url": "https://files.pythonhosted.org/packages/da/a0/68ba85b86ff79ba93b3a4cfcedb540deb74e7b8330dae8e962284b644131/spooky_hash-1.0.1.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "0bd58af48a59f57560aee8bcc5bff262", "sha256": "06a193a180c93557a5ce0ac3c0388ae7edb00ff7e2dccb51d270cc5e017da486" }, "downloads": -1, "filename": "spooky_hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0bd58af48a59f57560aee8bcc5bff262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39154, "upload_time": "2014-02-24T05:08:21", "url": "https://files.pythonhosted.org/packages/29/1b/487d4c1abddd2b07536c234e244aac5544e01ee3a1e2f4fe92d09683404c/spooky_hash-1.0.1.tar.gz" } ] }