Skip to main content

python devtools

CI Coverage pypi versions license

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

For more information, see documentation.

Install

Just

pip install devtools

If you've got python 3.7+ and pip installed, you're good to go.

Usage

from devtools import debug

whatever = [1, 2, 3]
debug(whatever)

Outputs:

test.py:4 <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
}

debug(data)

outputs:

python-devtools demo

Usage without Import

devtools can be used without from devtools import debug if you add debug into __builtins__ in sitecustomize.py.

For instructions on adding debug to __builtins__, see the installation docs.

Metadata

Release files for better-devtools 0.13.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for better-devtools 0.13.3
File Size Uploaded
better_devtools-0.13.3.tar.gz 76.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for better-devtools 0.13.3
File Interpreter ABI Platform
better_devtools-0.13.3-py3-none-any.whl Python 3 none any Details

Total release size: 99.6 kB

Release files / better_devtools-0.13.3.tar.gz

Download URL better_devtools-0.13.3.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cf7fb105ed83c70902f6d82307fdd7f42512e3a99cfd7e80dd9c2d9edf4b44cf
BLAKE2b-256 checksum
How to use checksums
41f4711717851a54c4a8203ec6e4a77383f8becd1052f61641bfd056ee7be405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release files / better_devtools-0.13.3-py3-none-any.whl

Download URL better_devtools-0.13.3-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f343b62ff119fd659494f44a63247bcc71ecdec6dbc2c497e6df9471081e08e6
BLAKE2b-256 checksum
How to use checksums
ae25e12b761b90d0e913cbed76b4a11e851542f9c561956c308d2b61416fd319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release history Release notifications | RSS feed

This release

0.13.3 This release

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page