Django flexible filter conditions
Flexible query filter conditions, that can be defined from django-admin and used for segmentation of date (i.e. Profiles).
Documentation
The full documentation is at https://django-flexible-filter-conditions.readthedocs.io.
Quickstart
Install Django flexible filter conditions:
pip install django-flexible-filter_conditions
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'flexible_filter_conditions.apps.FlexibleFilterConditionsConfig',
...
)
Add Django flexible filter conditions’s URL patterns:
FLEXIBLE_FILTER_CONDITIONS_FIELD_MAP = {
'User': ('aklub.models', 'User'),
'Profile': ('aklub.models', 'Profile'),
'Payment': ('aklub.models', 'Payment'),
'User.last_payment': ('aklub.models', 'Payment'),
'User.userchannels': ('aklub.models', 'DonorPaymentChannel'),
}
Features
TODO
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.5.0 (2020-02-19)
refactor: remove filter_by_condition(), make it NamedCondition class method filter_by_query()
fix contains operator
add more testing
0.4.0 (2020-02-18)
added support for new operators: in, list, date
mutlipe conditions in one named comdition can be added to support subsequent filters
add xor operator
add negate to condtition (and remove nor)
0.3.0 (2020-01-23)
fixes and improvements for better user orientation
0.2.0 (2020-01-21)
Added blank paremeter value
Added isnull filter
0.1.0 (2020-01-14)
First release on PyPI.
Metadata
Release files for django-flexible-filter-conditions 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-flexible-filter-conditions-0.5.0.tar.gz | 31.6 kB | Without provenance | Details for django-flexible-filter-conditions-0.5.0.tar.gz |
Release files / django-flexible-filter-conditions-0.5.0.tar.gz
| Download URL | django-flexible-filter-conditions-0.5.0.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
662a0705cd6ea47778cab702de33bf40d6b1932f1c645a62aacf8a7c067d9f3d
|
|
BLAKE2b-256 checksum How to use checksums |
77c07dc0731a583846a036847ecd8bb1f9ea036a14450841afb92eccabf86afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|
Security for django-flexible-filter-conditions 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.