Skip to main content

Django like lookup

https://badge.fury.io/py/django-like-lookup.svg https://travis-ci.org/PetrDlouhy/django-like-lookup.svg?branch=master https://codecov.io/gh/PetrDlouhy/django-like-lookup/branch/master/graph/badge.svg

PostgreSQL LIKE lookup functionality for Django. Django does contain __startswith, __endswith and __contains lookups, but all of them does escape “%” and “_” wildcard characters. The __like lookup is often faster, than the __regex lookup, so it can be used in cases when conditions are simple enough.

Documentation

The full documentation is at https://django-like-lookup.readthedocs.io.

Quickstart

Install Django like lookup:

pip install django-like-lookup

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'like_lookup',
    ...
)

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2020-01-29)

  • First release on PyPI.

Release files for django-like-lookup 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-like-lookup 0.1.1
File Size Uploaded
django-like-lookup-0.1.1.tar.gz 16.5 kB Details

Release files / django-like-lookup-0.1.1.tar.gz

Download URL django-like-lookup-0.1.1.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0a5210b7d5349d4da37795123571f750936b5dae725ad9ccaff9dabe6159d99
BLAKE2b-256 checksum
How to use checksums
f4c9dd040f2d11d9fbb038841c168345f1c76f29e1dad9b66b4bd18f2070c049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page