{ "info": { "author": "Kamil H\u0142awiczka", "author_email": "mail@devone.pl", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3 :: Only" ], "description": "[![Build Status](https://travis-ci.org/devone-pl/dict-extend-fuzzy.svg?branch=master)](https://travis-ci.org/devone-pl/dict-extend-fuzzy)\n\n![](https://img.shields.io/pypi/pyversions/dict-extend-fuzzy.svg?style=flat)\n\n# Dict extension - get_fuzzy\nGet element by fuzzy key from dict.\n\n## Introduction\n\nThe library is extension for buildin type `dict`. After import you can use `get_fuzzy` and `get_fuzzy_stats` like `get` method.\n\nThe minimum required python-3.4\n\n## Installing\nThis library can be install from pip:\n\n\n```bash\npip install dict-extend-fuzzy\n```\n\n## Usage\nSimple example\n```python\nfrom dictextendfuzzy import get_fuzzy\n\ndata = {\n\t'aaaa' : 1,\n\t'bbbb' : 2\n}\n\ndata.get_fuzzy('aaab') # 1\n\n```\n\nGet some more information\n\n```python\nfrom dictextendfuzzy import get_fuzzy_stats\n\ndata = {\n\t'aaaa' : 1,\n\t'bbbb' : 2\n}\n\nobj = data.get_fuzzy_stats('aaab')\nobj.key # 'aaaa'\nobj.value # 1\nobj.ratio # 0.75\n\n\n```\n\nWith optional parameters\n```python \ndata.get_fuzzy('kei', 'default_object', level=0.5)\ndata.get_fuzzy_stats('kay', {}, level=0.25)\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/devone-pl/dict-extend-fuzzy", "keywords": "dict extend extension fuzzy fuzzykey", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dict-extend-fuzzy", "package_url": "https://pypi.org/project/dict-extend-fuzzy/", "platform": "", "project_url": "https://pypi.org/project/dict-extend-fuzzy/", "project_urls": { "Homepage": "https://github.com/devone-pl/dict-extend-fuzzy" }, "release_url": "https://pypi.org/project/dict-extend-fuzzy/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "Get element by fuzzy key from dict", "version": "0.2.2" }, "last_serial": 4804364, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9828fe6b6e25e264d05a6d451adb5417", "sha256": "abaac8628f0cbec7394080601c384b209ceaefc819e22156d613638b7fdef07b" }, "downloads": -1, "filename": "dict_extend_fuzzy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9828fe6b6e25e264d05a6d451adb5417", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4727, "upload_time": "2019-02-10T22:17:35", "url": "https://files.pythonhosted.org/packages/ce/5e/9ca2cf682b00ad2d3fd6b92aafa193121692fd82bf5bfb0b77ef59b7dbf4/dict_extend_fuzzy-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "899ebfffa709f58001591fce8e6331df", "sha256": "9deecc683ab9b6bf4c61055ab9f1cb96a4acec13166dc6fb4621acf4d5e4a1c5" }, "downloads": -1, "filename": "dict-extend-fuzzy-0.1.tar.gz", "has_sig": false, "md5_digest": "899ebfffa709f58001591fce8e6331df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2735, "upload_time": "2019-02-10T22:17:37", "url": "https://files.pythonhosted.org/packages/ee/bd/be9495dff7d7c1acd95408b1eeaf045f8812e0bba1787b53ed525e834e8b/dict-extend-fuzzy-0.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ada6f944f8495c98b5414bd0fd9707bf", "sha256": "c85738f781833aef4353f5b97350e85e6da8871bfd4e19f41f488199da7cf45a" }, "downloads": -1, "filename": "dict_extend_fuzzy-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ada6f944f8495c98b5414bd0fd9707bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4911, "upload_time": "2019-02-11T06:25:31", "url": "https://files.pythonhosted.org/packages/dc/5f/2ecf30745adf8707da69a7d5c8eda731bb045379f132831cea9513ace477/dict_extend_fuzzy-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f57a1d8da8f0b6e05254d00a6fbaceb", "sha256": "dc4f8fcefab9642753369f00d35c169d6b1aebb612eacba74547902999431c6a" }, "downloads": -1, "filename": "dict-extend-fuzzy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "0f57a1d8da8f0b6e05254d00a6fbaceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3802, "upload_time": "2019-02-11T06:25:32", "url": "https://files.pythonhosted.org/packages/5e/c0/5ccf54abf032eef48a35114e88f4b905b681ad99cc6750b737500d83babd/dict-extend-fuzzy-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ada6f944f8495c98b5414bd0fd9707bf", "sha256": "c85738f781833aef4353f5b97350e85e6da8871bfd4e19f41f488199da7cf45a" }, "downloads": -1, "filename": "dict_extend_fuzzy-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ada6f944f8495c98b5414bd0fd9707bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4911, "upload_time": "2019-02-11T06:25:31", "url": "https://files.pythonhosted.org/packages/dc/5f/2ecf30745adf8707da69a7d5c8eda731bb045379f132831cea9513ace477/dict_extend_fuzzy-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f57a1d8da8f0b6e05254d00a6fbaceb", "sha256": "dc4f8fcefab9642753369f00d35c169d6b1aebb612eacba74547902999431c6a" }, "downloads": -1, "filename": "dict-extend-fuzzy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "0f57a1d8da8f0b6e05254d00a6fbaceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3802, "upload_time": "2019-02-11T06:25:32", "url": "https://files.pythonhosted.org/packages/5e/c0/5ccf54abf032eef48a35114e88f4b905b681ad99cc6750b737500d83babd/dict-extend-fuzzy-0.2.2.tar.gz" } ] }