Utils to inspect a stack to quickly debug 'magic' libraries.
Project description
Example Usage
def get_prefetch_queryset(self, instances, queryset=None):
query = {'%s__in' % self.field.name: instances}
from py_debug_inspect_utils import debug_print
debug_print(query=query)
Output:
/Users/Development/venv/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py:625 (get_prefetch_queryset)
()
{'query': {'attribute__in': [<Attribute: Flavor>]}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py-debug-inspect-utils-0.1.0.tar.gz
.
File metadata
- Download URL: py-debug-inspect-utils-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78cd60f9f0090ec28c10c3d03123aed2ea6466ffec960f470f22d6d26aa4588 |
|
MD5 | f6c9c7739f3b893223cca5d19c4c5e42 |
|
BLAKE2b-256 | 523528a3ce9269bd8c2d9e24cc5724c383ad186f2dcdc585cd0f8efbcf3cdba9 |