django-readers-debug
STATUS: EXPERIMENTAL
A pretty-printer for debugging django-readers queryset functions.
Installation
Install from PyPI
pip install django-readers-debug
Usage
Without django-readers-debug:
>>> from django_readers import qs
>>> prepare = qs.pipe(
... qs.include_fields("name"),
... qs.auto_prefetch_relationship("author", qs.include_fields("name")),
... qs.filter(publication_year__gte=2021),
... )
>>> print(prepare)
<function pipe.<locals>.piped at 0x10ce2a670>
>>>
With django-readers-debug:
>>> from django_readers_debug import debug_print
>>> debug_print(prepare)
qs.pipe(
qs.include_fields("name"),
qs.auto_prefetch_relationship(
"author", prepare_related_queryset=qs.include_fields("name")
),
qs.filter(publication_year__gte=2021),
)
Known limitations
Best-effort printing of Q objects and Prefetch objects only.
Code of conduct
For guidelines regarding the code of conduct when contributing to this repository please review https://www.dabapps.com/open-source/code-of-conduct/
Metadata
Release files for django-readers-debug 0.0.4
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-readers-debug-0.0.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_readers_debug-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / django-readers-debug-0.0.4.tar.gz
| Download URL | django-readers-debug-0.0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6108d2bded6fbf0bfa5f9c6408fa7231bff285c4bcf8b456216271d71615d93
|
|
BLAKE2b-256 checksum How to use checksums |
8e2151959e88333f5549e17fc2f73014e0bc9ac28c427f4a256f36e73f133def
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Release files / django_readers_debug-0.0.4-py3-none-any.whl
| Download URL | django_readers_debug-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23d99fa62bb8956ef6d7bc8ce8ebfe1aa72afe18bd9be5a1f8b83758c3c526b1
|
|
BLAKE2b-256 checksum How to use checksums |
712d82b0e1fd57d9fd90574aa69ea3557364d4eaaba38ab5a039b159bbc62755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|