Skip to main content

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

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-debug-inspect-utils, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size py-debug-inspect-utils-0.1.0.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page