Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Dev tools for python

Project description

BuildStatus Coverage pypi

Dev tools for python.

The debug print command python never had (and other things).

For more information, see documentation



pip install devtools[pygments]

(pygments is not required but if it’s available output will be highlighted and easier to read.)


from devtools import debug

whatever = [1, 2, 3]

Outputs: <module>:
  whatever: [1, 2, 3] (list)

That’s only the tip of the iceberg, for example:

import numpy as np

data = {
    'foo': np.array(range(20)),
    'bar': {'apple', 'banana', 'carrot', 'grapefruit'},
    'spam': [{'a': i, 'b': (i for i in range(3))} for i in range(3)],
    'sentence': 'this is just a boring sentence.\n' * 4



Usage without Import

modify /usr/lib/python3.6/ making debug available in any python 3.6 code

# add devtools debug to builtins
    from devtools import debug
except ImportError:
    __builtins__['debug'] = debug

Project details

Download files

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

Files for devtools, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size devtools-0.5.1-py35.py36-none-any.whl (12.1 kB) File type Wheel Python version py35.py36 Upload date Hashes View hashes
Filename, size devtools-0.5.1.tar.gz (11.2 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page