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.10+ 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) len=3

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

import numpy as np
from devtools import debug

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 devtools 0.13.0

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

Source distribution (sdist)

Source distribution for devtools 0.13.0
File Size Uploaded
devtools-0.13.0.tar.gz 14.6 kB Details

Built distribution (wheel)

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

Total release size: 30.7 kB

Release files / devtools-0.13.0.tar.gz

Download URL devtools-0.13.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e3a848080404bd4e10dbf535fe016c6b593fccf24a8edac863048b8cbab3d92f
BLAKE2b-256 checksum
How to use checksums
4cac480ca726f38d1b6a8fb2af6b0b861e130dfd3e03c9bcc5a151ddedb289aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / devtools-0.13.0-py3-none-any.whl

Download URL devtools-0.13.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b325c797951b96417045b77d226d7991e2c578d711c1e7860b44a40a5b2ec4b
BLAKE2b-256 checksum
How to use checksums
e92f21e494a2ebe8ed49370edc34d38fbdcb5440a29f89ecf6b19843ecbbab41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6

2 release files

0.5.1

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

0.0.2

2 release files

0.0.1

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