samuelcolvin/python-devtools

Dev tools for python

Python

1,101

144 commits

updated Oct 11, 2026

See the code

README

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.

devtools
python
python-devtools

samuelcolvin/python-devtools

Dev tools for python

Python

1,101

144 commits

updated Oct 11, 2026

See the code

README

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.

devtools
python
python-devtools

Project health

Overall

3.3/10

Maintained

0/10

Code review

2/10
OpenSSF Scorecard

Latest release

0.13.0 · Oct 11, 2026

Releases this year

1

Significant stargazers

Marc Abramowitz

294 followers · starred Jul 2025

Sebastián Ramírez

32,342 followers · starred Apr 2020

Nell Boulle

242 followers · starred Mar 2024

Steve Loria

1,852 followers · starred Apr 2020