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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-like-lookup-0.1.1.tar.gz
(16.5 kB
view details)
File details
Details for the file django-like-lookup-0.1.1.tar.gz.
File metadata
- Download URL: django-like-lookup-0.1.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0a5210b7d5349d4da37795123571f750936b5dae725ad9ccaff9dabe6159d99
|
|
| MD5 |
cce6f8d4ca98cfda092e4b9df233719d
|
|
| BLAKE2b-256 |
f4c9dd040f2d11d9fbb038841c168345f1c76f29e1dad9b66b4bd18f2070c049
|