{ "info": { "author": "Greg Bowyer & Venkatesh Sharma", "author_email": "gbowyer@fastmail.co.uk & venkatesh@urx.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "*********************************\nCFFI bindings to the CMPH library\n*********************************\n\nThese bindings provide python with the ability to create and use \n`Minimal Perfect Hashes`_ via the CMPH_ library.\n\n-----\n\n|pypi| |build| |coverage| |lint|\n\n-----\n\n\n============\nInstallation\n============\n\nShould be as simple as \n\n.. code-block:: bash\n \n $ pip install cmph-cffi\n\n\n-------------------\nDevelopment version\n-------------------\n\nThe **latest development version** can be installed directly from GitHub:\n\n.. code-block:: bash\n\n $ pip install --upgrade 'git+https://github.com/URXtech/cmph-cffi'\n\n\n=====\nUsage\n=====\n\nCreating a new MPH\n\n.. code-block:: python\n\n import cmph\n with open('/usr/share/dict/words', 'w') as keys:\n mph = cmph.generate_hash(keys)\n\nGetting keys out of an MPH\n\n.. code-block:: python\n\n mph('Test')\n\n.. warning:: Be aware that whilst MPH's are awesome, they typically cannot\n distinguish between keys they are built on and unseen keys. Concretely this\n means that feeding in keys that are not in the original key set will have\n **undefined results**\n\nSaving the MPH\n\n.. code-block:: python\n\n with open('/tmp/out.mph', 'w') as out_file:\n mph.save(out_file)\n\nLoading a pre-existing MPH\n\n.. code-block:: python\n\n with open('/tmp/out.mph') as in_file:\n cmph.load_hash(in_file)\n\n=======\nAuthors\n=======\n\n\n`Greg Bowyer`_ (`@GregBowyer`_) and `Venkatesh Sharma`_ (`@Venkateshks`_)\ncreated these bindings and `these fine people`_ did all the hard implementation\nwork in CMPH_.\n\n\n==============\nReporting bugs\n==============\nPlease see `BUG_REPORTS `_.\n\n\n==========\nContribute\n==========\n\nPlease see `CONTRIBUTING `_.\n\n\n=======\nLicence\n=======\n\nPlease see `LICENSE `_.\n\n\n.. _Minimal Perfect Hashes: http://en.wikipedia.org/wiki/Perfect_hash_function#Minimal_perfect_hash_function\n.. _CMPH: http://cmph.sourceforge.net/\n.. _these fine people: http://sourceforge.net/p/cmph/git/ci/master/tree/AUTHORS\n.. _Greg Bowyer: http://bonsaichicken.org\n.. _Venkatesh Sharma: https://github.com/venkateshks\n.. _@venkateshks: https://github.com/venkateshks\n.. _@GregBowyer: https://github.com/GregBowyer\n\n.. |pypi| image:: https://img.shields.io/pypi/v/cmph-cffi.svg?style=flat-square&label=latest%20version\n :target: https://pypi.python.org/pypi/cmph-cffi\n :alt: Latest version released on PyPi\n\n.. |build| image:: https://img.shields.io/travis/URXtech/cmph-cffi/master.svg?style=flat-square&label=build\n :target: http://travis-ci.org/URXtech/cmph-cffi\n :alt: Build status \n\n.. |coverage| image:: https://img.shields.io/codecov/c/github/URXtech/cmph-cffi.svg\n :target: https://codecov.io/github/URXtech/cmph-cffi\n :alt: Coverage\n\n.. |lint| image:: https://landscape.io/github/URXtech/cmph-cffi/master/landscape.svg?style=flat-square\n :target: https://landscape.io/github/URXtech/cmph-cffi/master\n :alt: Code Health", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/URXtech/cmph-cffi/", "keywords": "cmph,mph", "license": "LGPL-2.1 & MPL-1.1", "maintainer": null, "maintainer_email": null, "name": "cmph-cffi", "package_url": "https://pypi.org/project/cmph-cffi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cmph-cffi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/URXtech/cmph-cffi/" }, "release_url": "https://pypi.org/project/cmph-cffi/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "CFFI enabled bindings to the CMPH library forcreating and using minimal perfect hashes", "version": "0.3.0" }, "last_serial": 1477728, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9272a8a0452b0766a2e9af1bd31a34c2", "sha256": "48caf9d24448c281b252b23744188301b1548677e72bd3c309ca1b84fd54d681" }, "downloads": -1, "filename": "cmph-cffi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9272a8a0452b0766a2e9af1bd31a34c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67041, "upload_time": "2015-03-07T06:56:37", "url": "https://files.pythonhosted.org/packages/00/5b/a6426a1a040cd850fa315e5e2de0fdc25453e1eb8f3f8efd75cec8ba808a/cmph-cffi-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b76b1021086cf1b17ac1b2c269fcd63c", "sha256": "53f8adb6b1d960771797223ed84370e81dc1904dfb5c7093ec7873a17df70b8d" }, "downloads": -1, "filename": "cmph-cffi-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b76b1021086cf1b17ac1b2c269fcd63c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74488, "upload_time": "2015-03-13T01:59:50", "url": "https://files.pythonhosted.org/packages/5c/a2/efc6c0d10586cb203a32d5fa6afe0321620e8881c34e106b7950cc67589c/cmph-cffi-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "70d8295ba9b081cfdfce4b28193c6349", "sha256": "0ee85742ed27e17686d8016c210a88c2e638b34e3a8bccbaf348df00419bdccb" }, "downloads": -1, "filename": "cmph-cffi-0.3.0.tar.gz", "has_sig": false, "md5_digest": "70d8295ba9b081cfdfce4b28193c6349", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82678, "upload_time": "2015-03-25T21:43:46", "url": "https://files.pythonhosted.org/packages/96/af/2f0f7709d6d0b57ca8db49afca8e7d1cf1463627d889720a8651e5da2796/cmph-cffi-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "70d8295ba9b081cfdfce4b28193c6349", "sha256": "0ee85742ed27e17686d8016c210a88c2e638b34e3a8bccbaf348df00419bdccb" }, "downloads": -1, "filename": "cmph-cffi-0.3.0.tar.gz", "has_sig": false, "md5_digest": "70d8295ba9b081cfdfce4b28193c6349", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82678, "upload_time": "2015-03-25T21:43:46", "url": "https://files.pythonhosted.org/packages/96/af/2f0f7709d6d0b57ca8db49afca8e7d1cf1463627d889720a8651e5da2796/cmph-cffi-0.3.0.tar.gz" } ] }