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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| better_devtools-0.13.3.tar.gz | 76.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|