Django like lookup
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)
| 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
|