{ "info": { "author": "Pablo Martin", "author_email": "goinnn@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": ".. contents::\n\n===========\ndjango-like\n===========\n\nInformation\n===========\n\ndjango-like is a Django application that adds other useful fields.\n\nIt is distributed under the terms of the GNU Lesser General Public\nLicense \n\n\n.. image:: https://travis-ci.org/goinnn/django-like.png?branch=master\n :target: https://travis-ci.org/goinnn/django-like\n\n.. image:: https://coveralls.io/repos/goinnn/django-like/badge.png?branch=master\n :target: https://coveralls.io/r/goinnn/django-like\n\n.. image:: https://badge.fury.io/py/django-like.png\n :target: https://badge.fury.io/py/django-like\n\n.. image:: https://pypip.in/d/django-like/badge.png\n :target: https://pypi.python.org/pypi/django-like\n\n\nRequeriments\n============\n\n* `Django `_ (>=1.1). It's possible that works with other versions lower 1.1\n\n\nInstallation\n============\n\n\n* To use the \"like/ilike lookup\" with Django 1.4, 1.5 or 1.6 you need to install django_like (this app make a monkey patching) or to patch your Django.\n* To use the \"like/ilike lookup\" with Django 1.3, 1.2 or 1.1 you need to install django_like (this app make a monkey patching), You could patch your Django but I have not make a patch, but this will be very easy. You only have to see the monkey patch and to update the same, or you could see other patch and update more or less the same.\n* To use the \"like/ilike lookup\" with Django 1.7 you only need to install django_like but now this application **does not make monkey patching**. Now Django provide an API to do it.\n\n\n\n\nIn your settings.py\n-------------------\n\n::\n\n INSTALLED_APPS = (\n\n 'django_like',\n\n )\n\nOr apply some of the next patches (This is not neccesary, you can only install the app):\n * `Django 1.4 `_\n * `Django 1.5 `_\n * `Django 1.6 `_\n\nUsage\n=====\n\nSomething that you can to do with `like `_ sentence\n\n::\n\n MyModel.objects.filter(field_name__like='xx%YY%zz')\n MyModel.objects.filter(field_name__ilike='xx%yy%zz')\n User.objects.filter(username__like='a%in')\n\nIt is more quick and more readable that something like this:\n\n::\n\n MyModel.objects.filter(field_name__regex='^xx.*YY.*zz$')\n\nThis app provider two new `lookups `_: like and ilike.\n\nNow you can compare the time it takes to run the same query, many times, with like and with regex\n\n::\n\n python manage.py benchmark_like\n\n\nThese are a results executing the `benchmark_like `_ in my machine:\n\n========================== =============== ================= ================= ==============\nType & result \\\\ Database postgres mysql sqllite oracle\n========================== =============== ================= ================= ==============\nlike 0:00:50.727005 0:00:14.025656 0:01:36.089407 ?:??:??.??????\nregex 0:01:38.410019 0:02:57.255685 0:09:39.527765 ?:??:??.??????\nImprovement 254% 600% 503% ???% \n========================== =============== ================= ================= ==============\n\nReported\n========\n\n * `Stack overflow `_\n * `Ticket in Django `_\n * `Pull request `_\n * `Post in a blog `_\n\nDevelopment\n===========\n\nYou can get the bleeding edge version of django-like by doing a clone\nof its repository\n\n::\n\n git clone git://github.com/goinnn/django-like.git\n\n\nExample project\n===============\n\nIn the source tree, you will find a directory called `example `_. It contains\na readily setup project that uses django-like. You can run it as usual:\n\n::\n\n python manage.py syncdb --noinput\n python manage.py loaddata app_data\n python manage.py runserver\n\n\n0.2.0 (2014-10-13)\n===================\n* Support to Django 1.7.\n* For Django 1.7, django_like use the lookup API\n\n0.1.0 (2013-12-20)\n===================\n\n* Added example project\n* Added tests (for SQLite, MySQL and PostgreSQL)\n* Integrated with travis and coverals\n* Python2.6 compatible (benchmark_like)\n* Added patche to Django 1.6\n\n\n0.0.7 (2013-09-11)\n===================\n\n* Add licese file\n\n0.0.6 (2013-09-10)\n===================\n\n* Fix README typo\n\n0.0.5 (2013-08-14)\n===================\n\n* Fix README typo\n\n0.0.4 (2013-08-14)\n===================\n\n* Improve the README\n* Fix a littles bugs\n* Python3 compatible\n* Django 1.5 compatible\n* Thanks to:\n * `Luke Winship `_\n\n0.0.3 (2012-02-14)\n===================\n\n* Fix a broken link in the readme\n\n0.0.2 (2012-02-13)\n===================\n\n* Add benchmark command\n\n0.0.1 (2011-12-28)\n===================\n\n* First version to django-like", "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/goinnn/django-like", "keywords": "django,querysets,lookup,like,ilike", "license": "LGPL 3", "maintainer": null, "maintainer_email": null, "name": "django-like", "package_url": "https://pypi.org/project/django-like/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-like/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/goinnn/django-like" }, "release_url": "https://pypi.org/project/django-like/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Django application that provider the like and ilike lookups for the querysets", "version": "0.2.0" }, "last_serial": 1269057, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "84aa0985e5cb4636829617fb8cf61d6e", "sha256": "5b2f0fa892d4dd103bd2d526961e8ac65a9e6f31f71bcfbda771cf5092381348" }, "downloads": -1, "filename": "django-like-0.0.1.tar.gz", "has_sig": false, "md5_digest": "84aa0985e5cb4636829617fb8cf61d6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3238, "upload_time": "2011-12-28T17:34:41", "url": "https://files.pythonhosted.org/packages/54/9c/6e0a62ef09497a7d4d47c3ed893fe92d63ed54e52edb27822decef009877/django-like-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7d565cd9dc1bb9ee8ce7b936c44def7e", "sha256": "92e6f1f70b11fcb8e54f2bc3fe982c4c8a5f7b9620da50e8576e04e5db491f06" }, "downloads": -1, "filename": "django-like-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7d565cd9dc1bb9ee8ce7b936c44def7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4130, "upload_time": "2012-02-13T10:07:20", "url": "https://files.pythonhosted.org/packages/39/d2/b7193c2adb25da5eb1f22ff861dc27b0d2f4d23d09e7a2fbc549f08bf102/django-like-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ec8cc579a0f418e76f0520aafad0c8cc", "sha256": "97fb0ebc5c23badf8c99da83b328763b22869073c0416d7d78742dff25680375" }, "downloads": -1, "filename": "django-like-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ec8cc579a0f418e76f0520aafad0c8cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4159, "upload_time": "2012-02-14T10:37:52", "url": "https://files.pythonhosted.org/packages/cc/7c/6b034d4939e079fee641195cc89284dea43b497f3104bbf481597ba3d5f2/django-like-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1c683db8899dcfdba5e67943052d06c0", "sha256": "a3287eb53a6f0d99448dbb71815aff3dc2919e50a7ac7ea54699ab333c828e6e" }, "downloads": -1, "filename": "django-like-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1c683db8899dcfdba5e67943052d06c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4668, "upload_time": "2013-08-14T09:57:48", "url": "https://files.pythonhosted.org/packages/74/e0/0e2906803d2ba35fc1dd557b81f6a5295b55a0b075fab23b93e9d85aa29f/django-like-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "484d5bb7878ca3cb0d16ef7d70191667", "sha256": "eb860eb8239c63d12cb7e729edb5e2f4ea9b91bbc302a7d701475810efce0966" }, "downloads": -1, "filename": "django-like-0.0.5.tar.gz", "has_sig": false, "md5_digest": "484d5bb7878ca3cb0d16ef7d70191667", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4687, "upload_time": "2013-08-14T10:28:02", "url": "https://files.pythonhosted.org/packages/3d/2c/80e1313ddbe81a27aea9917150910fe2db8a2ce46ca1439ac28e0f447069/django-like-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "2bfa93ae9845faee6dfe70e495b033a9", "sha256": "58ea389542ea84b5d74102100e9356f77e2a293f799331198f24a7e981fd9825" }, "downloads": -1, "filename": "django-like-0.0.6.tar.gz", "has_sig": false, "md5_digest": "2bfa93ae9845faee6dfe70e495b033a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4709, "upload_time": "2013-09-10T12:48:11", "url": "https://files.pythonhosted.org/packages/cf/3b/cba571f95acac9616763dc7683cf2c94fbfe04d3aa24d6a9c35fb945f781/django-like-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "9ed88cdc89f36658d28e481209996a9c", "sha256": "952e29908f1f9db3d4fb030b9235881b1e9953ac4b98cda653a93e8792535ea0" }, "downloads": -1, "filename": "django-like-0.0.7.tar.gz", "has_sig": false, "md5_digest": "9ed88cdc89f36658d28e481209996a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7309, "upload_time": "2013-09-11T09:08:31", "url": "https://files.pythonhosted.org/packages/12/07/33aeba2d23478fa3bcb346b97f1e945b922e77290f763a28e983e84b0a33/django-like-0.0.7.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "aa9345d2ff9f11a08d7cea2632b7b9af", "sha256": "65b82ae9030196b1c4eec42f6e7fffee3b7b202fc8de1f8f57ba6be60d379729" }, "downloads": -1, "filename": "django-like-0.1.0.tar.gz", "has_sig": false, "md5_digest": "aa9345d2ff9f11a08d7cea2632b7b9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7841, "upload_time": "2013-12-20T19:34:08", "url": "https://files.pythonhosted.org/packages/9f/3a/de9a0b0964e3f3031cf7cc49b5ef0c20526f75ab85591394fd0ca07dcb96/django-like-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1059c11074597e3ff7c39a2082049df9", "sha256": "71022f8f356a694b84470b2125b1f72e9aebc048b4205a391e37d1a915ebeb1e" }, "downloads": -1, "filename": "django-like-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1059c11074597e3ff7c39a2082049df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9052, "upload_time": "2014-10-13T18:33:19", "url": "https://files.pythonhosted.org/packages/84/cc/8697c4c6af8652bb301ada97e0b04aa5a9e7a4aa6c67181d0edb6a9af193/django-like-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1059c11074597e3ff7c39a2082049df9", "sha256": "71022f8f356a694b84470b2125b1f72e9aebc048b4205a391e37d1a915ebeb1e" }, "downloads": -1, "filename": "django-like-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1059c11074597e3ff7c39a2082049df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9052, "upload_time": "2014-10-13T18:33:19", "url": "https://files.pythonhosted.org/packages/84/cc/8697c4c6af8652bb301ada97e0b04aa5a9e7a4aa6c67181d0edb6a9af193/django-like-0.2.0.tar.gz" } ] }