All Projects → samuelcolvin → Python Devtools

samuelcolvin / Python Devtools

Licence: mit
Dev tools for python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Python Devtools

near-cli
General purpose command line tools for interacting with NEAR Protocol
Stars: ✭ 130 (-55.63%)
Mutual labels:  devtools
setprotocol.js
🥞 Javascript library for a collateralized basket of ERC20 tokens
Stars: ✭ 57 (-80.55%)
Mutual labels:  devtools
BootstraPHP
A Bootstrap wrapper for PHP
Stars: ✭ 24 (-91.81%)
Mutual labels:  devtools
dart-redux-remote-devtools
Remote Devtools for Dart & Flutter
Stars: ✭ 50 (-82.94%)
Mutual labels:  devtools
page-walker
Chrome DevTools automation for desktop and mobile devices
Stars: ✭ 18 (-93.86%)
Mutual labels:  devtools
red
A fast, in-kernel, ad-hoc point-to-point vxlan network.
Stars: ✭ 31 (-89.42%)
Mutual labels:  devtools
sapling
Sapling - A convenient way to traverse your React app in VS Code
Stars: ✭ 440 (+50.17%)
Mutual labels:  devtools
Deepkit Ml
The collaborative real-time open-source machine learning devtool and training suite: Experiment execution, tracking, and debugging. With server and project management tools.
Stars: ✭ 286 (-2.39%)
Mutual labels:  devtools
swr-devtools
Devtools for SWR
Stars: ✭ 17 (-94.2%)
Mutual labels:  devtools
myke
make with yaml: development tasks made simple with golang, yaml and many ingredients
Stars: ✭ 67 (-77.13%)
Mutual labels:  devtools
laziness
Laziness is a set of tools for a better developer experience.
Stars: ✭ 18 (-93.86%)
Mutual labels:  devtools
compose-watcher
Watch volumes and restart services in docker compose
Stars: ✭ 27 (-90.78%)
Mutual labels:  devtools
narc
Small utility to watch log files and ship to syslog service.
Stars: ✭ 18 (-93.86%)
Mutual labels:  devtools
urql-devtools-exchange
The exchange for usage with Urql Devtools
Stars: ✭ 35 (-88.05%)
Mutual labels:  devtools
Log
Console.log with style.
Stars: ✭ 2,766 (+844.03%)
Mutual labels:  devtools
badgee
Browser Console Improved
Stars: ✭ 26 (-91.13%)
Mutual labels:  devtools
dti
command-line electron devtools installer
Stars: ✭ 33 (-88.74%)
Mutual labels:  devtools
Sketch Dev Tools
See your plugin logs, inspect the state of Sketch documents, explore actions, and more!
Stars: ✭ 285 (-2.73%)
Mutual labels:  devtools
Redux Remotedev
Redux DevTools for production (web and React Native) with a highly flexible API.
Stars: ✭ 265 (-9.56%)
Mutual labels:  devtools
chrome-ext-save-css
Chrome extension to automatically save changes in CSS and JS into local disk.
Stars: ✭ 27 (-90.78%)
Mutual labels:  devtools

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[pygments]

pygments is not required but if it's installed, output will be highlighted and easier to read.

devtools has no other required dependencies except python 3.6, 3.7, or 3.8. If you've got python 3.6+ 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:

python-devtools demo

Usage without Import

modify /usr/lib/python3.8/sitecustomize.py making debug available in any python 3.8 code

# add devtools debug to builtins
try:
    from devtools import debug
except ImportError:
    pass
else:
    __builtins__['debug'] = debug
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].