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.
Project description
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.apps.LikeLookupConfig',
...
)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.