OUTLINE
Persistent representation of django QuerySet`s.
Quick creation of simple search functionality without custom SQL or implicit markers/ids/indexes storing.
EXAMPLES
Trivial example
from stored.queryset import FilterQuerySet
q = FilterQuerySet('Q(text__icontains="sometext")', 'someapp.somemodel')
q.objects.all() #outputs all
loads(dumps(q)).objects.all() #same result
Simple with literals
#define default literals
q0 = FilterQuerySet('Q(text__icontains="{literal_text}")',
'someapp.somemodel',
literal_parameter='"sometext"')
#new queryset with different `literal_text` value
q1 = q0.literal(literal_text='"some_other_text"').objects.all()
#literals are parsed with safe `ast.literal_eval` and can be taken from user input
#q1 can be pickled and thus user search can be stored in db
#if to keep different `FilterQuerySet` for each user.
loads(dumps(q1)).objects.all() #same result
INSTALLATION
Try one of these:
pip install django-stored-queryset easy_install django-stored-queryset
Metadata
Release files for django-stored-queryset 0.0.2
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-stored-queryset-0.0.2.tar.gz | 8.6 kB | Without provenance | Details for django-stored-queryset-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_stored_queryset-0.0.2-py2.7.egg | Legacy Egg format | - | - | Details for django_stored_queryset-0.0.2-py2.7.egg |
Total release size: 20.1 kB
Release files / django-stored-queryset-0.0.2.tar.gz
| Download URL | django-stored-queryset-0.0.2.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da735d53fa1a6c036cd2427e11a522146cda73dcaf5a35f527c25f67ba9099cf
|
|
BLAKE2b-256 checksum How to use checksums |
bf4d91b59d57b9bef9ead148f8ab8da457b902752ac926ddde5e430f3c27678f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_stored_queryset-0.0.2-py2.7.egg
| Download URL | django_stored_queryset-0.0.2-py2.7.egg |
|---|---|
| Size | 11.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f978cc1dc7a5de2105a0aef0968737d55138332666f31e1b1ab6a3ffaaa7e515
|
|
BLAKE2b-256 checksum How to use checksums |
d63ff27351beec7c383a9bdfa5726d156d1aca22a4fb2ac61c8425f582b18adf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-stored-queryset 0.0.2
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.