Dev tools for python
Project description
Dev tools for python. WIP
Install
Just:
pip install devtools[pygments]
(pygments is not required but if it’s available output will be highlighted and easier to read.)
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 demo.py:
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
modify /usr/lib/python3.6/sitecustomize.py making debug available in any python 3.6 code
# add devtools debug to builtins
try:
from devtools import debug
except ImportError:
pass
else:
__builtins__['debug'] = debug
Project details
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
devtools-0.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file devtools-0.1.tar.gz
.
File metadata
- Download URL: devtools-0.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87aa9f258493c3ad3d4a2c8c2254713fbf1993a8035d0ee7402b4c8799727242 |
|
MD5 | b362bc7703d659e613209075dda729af |
|
BLAKE2b-256 | e05f3d0f08642881ce3a4662d7310084a044bee219e03425be46d6141292aa05 |
File details
Details for the file devtools-0.1-py35,py36-none-any.whl
.
File metadata
- Download URL: devtools-0.1-py35,py36-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3.5,py36
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820287d691fa86972365ed8718df0b2095a54eec38d414a02bef01d2fca8e0ee |
|
MD5 | e6fbf91f06f0ac49da5d8b909562ed46 |
|
BLAKE2b-256 | f46799313e7a5f83b09f6354726b033917a6fa6eb0835579c74679b62f54222d |