Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-like

How to install django-like

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-like
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.3
0.0.5Never BuiltWhy not?
0.0.3 Available View build log
0.0.1 Available View build log
Windows (64-bit)
0.0.3
0.0.5Never BuiltWhy not?
0.0.3 Available View build log
0.0.1 Available View build log
Mac OS X (10.5+)
0.0.3
0.0.5Never BuiltWhy not?
0.0.3 Available View build log
0.0.1 Available View build log
Linux (32-bit)
0.0.3
0.0.5Never BuiltWhy not?
0.0.3 Available View build log
0.0.1 Available View build log
Linux (64-bit)
0.0.5 Available View build log
0.0.3 Available View build log
0.0.1 Available View build log
0.0.5 Available View build log
 
Author
License
LGPL 3
Lastest release
version 0.0.5 on Sep 20th, 2013

Django Like

Information

Django Like is a Django application that adds other useful fields.

It is distributed under the terms of the GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>

https://badge.fury.io/py/django-like.png https://pypip.in/d/django-like/badge.png
Requeriments

Django 1.1 (or higher). It's possible that works with other versions lower 1.1

Installation
In your settings.py
INSTALLED_APPS = (

    'django_like',

)
Or apply some of the next patches (This is not neccesary, you can install the app):
Usage

Anything that you can to do with like sentence in SQL

MyModel.objects.filter(field_name__like='xx%YY%zz')
MyModel.objects.filter(field_name__ilike='xx%yy%zz')
User.objects.filter(username__like='a%in')

It is more quick that something like this, and more readable:

MyModel.objects.filter(field_name__regex='^xx.*YY.*zz$')

This app provider two new lookups: like and ilike.

Now you can compare the time it takes to run the same query, many times, with like and with regex

python manage.py benchmark_like

These are a results executing the benchmark_like in my machine:

Type & result \ Data base postgres mysql sqllite oracle
like 0:00:50.727005 0:00:14.025656 0:01:36.089407 ?:??:??.??????
regex 0:01:38.410019 0:02:57.255685 0:09:39.527765 ?:??:??.??????
Improvement 254% 600% 503% ???%
Development

You can get the leading edge version of django-like by doing a checkout of its repository:

https://github.com/goinnn/django-like
0.0.5 (2013-08-14)
  • Fix README typo
0.0.4 (2013-08-14)
  • Improve the README

  • Fix a littles bugs

  • Python3 compatible

  • Django 1.5 compatible

  • Thanks to:
0.0.3 (2012-02-14)
  • Fix a broken link in the readme
0.0.2 (2012-02-13)
  • Add benchmark command
0.0.1 (2011-12-28)
  • First version to django-like

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.