[ Web Proxy ]
URL:
Viewing: https://python-devtools.helpmanual.io/ [Back]  [Original]

python-devtools
Skip to content
python-devtools
Overview
samuelcolvin/python-devtools

Python devtools

CI [CI] Coverage [Coverage] pypi [pypi] versions [versions] license [license]

Documentation for version: v0.12.2

Python's missing debug print command and other development tools.

from devtools import debug

v1 = {
    'foo': {1: 'nested', 2: 'dict'},
    'bar': ['apple', 'banana', 'carrot', 'grapefruit'],
}

debug(v1, sum(range(5)))
docs/examples/example.py:8 <module>
    v1: {
        'foo': {
            1: 'nested',
            2: 'dict',
        },
        'bar': [
            'apple',
            'banana',
            'carrot',
            'grapefruit',
        ],
    } (dict) len=2
    sum(range(5)): 10 (int)

Python devtools can do much more, see Usage for examples.


Web Proxy Viewer  |  New URL  |  Original Page