{ "info": { "author": "Andr\u00e9s Villavicencio", "author_email": "andres@unholster.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Topic :: Utilities" ], "description": "django-lookup\n=============\nLookup is a simple Django app to easy work with slug charfields and fuzzy finding in\nyour models.\n\nQuick start\n-----------\n\n1. Add \"lookup\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'lookup',\n )\n\n2. Run `python manage.py syncdb` to create the lookup models.\n \nUse example:\n def option_key(self, option):\n \treturn option.name if hasattr(option, 'name') else option\n\n\t\t...\n\n\t\tfuzzy_string = \"Some incorrectly spelled key\" \n \t\t\n \t\t# Creates a lookup object for the Territory model\n \tzone_lookup = LookupTable(Territory)\n\n \t# Creates a lookup list using what's already on the table.\n zone_lookup.create_aliases(self.option_key) \n\n # Obtains a territory using a slug from the fuzzy_string and tries to obtain the object associated to it\n # if no exact matches, proposes alternatives using fuzzy finding or to create a new object.\n zone, created = zone_lookup.prompt(fuzzy_string, defaults={'name': fuzzy_string, cutoff=0.5, n=5)", "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/Unholster/django-lookup", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "unholster.django-lookup", "package_url": "https://pypi.org/project/unholster.django-lookup/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/unholster.django-lookup/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Unholster/django-lookup" }, "release_url": "https://pypi.org/project/unholster.django-lookup/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Easy SlugField management", "version": "0.1.0" }, "last_serial": 941079, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59ca7e777dbd4ee88d4b02121b42137a", "sha256": "c4bda74aa6ea3383a22b64d453ed800cefc4e7370c748a3917f1b7bf93c2f550" }, "downloads": -1, "filename": "unholster.django-lookup-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59ca7e777dbd4ee88d4b02121b42137a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2013-12-10T15:41:38", "url": "https://files.pythonhosted.org/packages/7f/25/d34bb1eb0ed5bdc069126f8745f4f5849104c3726f35074fee9114042459/unholster.django-lookup-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "59ca7e777dbd4ee88d4b02121b42137a", "sha256": "c4bda74aa6ea3383a22b64d453ed800cefc4e7370c748a3917f1b7bf93c2f550" }, "downloads": -1, "filename": "unholster.django-lookup-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59ca7e777dbd4ee88d4b02121b42137a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2013-12-10T15:41:38", "url": "https://files.pythonhosted.org/packages/7f/25/d34bb1eb0ed5bdc069126f8745f4f5849104c3726f35074fee9114042459/unholster.django-lookup-0.1.0.tar.gz" } ] }