devtools 0.12.2
pip install devtools
Latest version
Released:
Python's missing debug print command, and more.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (The MIT License (MIT) Copyright (c) 2017 to present Samuel Colvin Permission is hereby granted, fr...)
- Author: Samuel Colvin
- Requires: Python >=3.7
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Project description
python devtools
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:
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (The MIT License (MIT) Copyright (c) 2017 to present Samuel Colvin Permission is hereby granted, fr...)
- Author: Samuel Colvin
- Requires: Python >=3.7
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file devtools-0.12.2.tar.gz
.
File metadata
- Download URL: devtools-0.12.2.tar.gz
- Upload date:
- Size: 75.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efceab184cb35e3a11fa8e602cc4fadacaa2e859e920fc6f87bf130b69885507 |
|
MD5 | 1d05df199ca3fe1089cd25c1cd265273 |
|
BLAKE2b-256 | 8475b78198620640d394bc435c17bb49db18419afdd6cfa3ed8bcfe14034ec80 |
File details
Details for the file devtools-0.12.2-py3-none-any.whl
.
File metadata
- Download URL: devtools-0.12.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c366e3de1df4cdd635f1ad8cbcd3af01a384d7abda71900e68d43b04eb6aaca7 |
|
MD5 | baaa92cb1e34ab1dc3084beef99d1421 |
|
BLAKE2b-256 | d1aeafb1487556e2dc827a17097aac8158a25b433a345386f0e249f6d2694ccb |