All Projects → sha256 → Python Var Dump

sha256 / Python Var Dump

Licence: other
PHP's var_dump equivalent function for Python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Python Var Dump

Ribstreeviewerclient
Real Time viewing attached RIBs Tree on Browser
Stars: ✭ 84 (-35.38%)
Mutual labels:  debug
Vue Clicky
Handy debugging function for Vue
Stars: ✭ 109 (-16.15%)
Mutual labels:  debug
Okteto
Develop your applications directly in your Kubernetes Cluster
Stars: ✭ 1,937 (+1390%)
Mutual labels:  debug
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (-35.38%)
Mutual labels:  debug
Pandora
an android library for debugging what we care about directly in app.
Stars: ✭ 1,365 (+950%)
Mutual labels:  debug
Ramda Debug
🐏 Debugging for Ramda.
Stars: ✭ 113 (-13.08%)
Mutual labels:  debug
Swissarmyknife
android ui调试工具
Stars: ✭ 1,209 (+830%)
Mutual labels:  debug
Blender Debugger For Vscode
Blender addon for remote debugging Blender with VS Code (and Visual Studio)
Stars: ✭ 123 (-5.38%)
Mutual labels:  debug
Gdb Static
Public repository of static GDB and GDBServer
Stars: ✭ 103 (-20.77%)
Mutual labels:  debug
Utinyripper
GUI and API library to work with Engine assets, serialized and bundle files
Stars: ✭ 1,871 (+1339.23%)
Mutual labels:  debug
Androidattacher
IDA debugging plugin for android armv7 so
Stars: ✭ 87 (-33.08%)
Mutual labels:  debug
Debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 9,912 (+7524.62%)
Mutual labels:  debug
Everbug
Django debug tool for browser
Stars: ✭ 114 (-12.31%)
Mutual labels:  debug
Vlog
An in-display logging library for Android 📲
Stars: ✭ 86 (-33.85%)
Mutual labels:  debug
React Native Vdebug
React-Native 调试工具,支持Console终端、Network导出cURL,可视化Response,Retry cURL。
Stars: ✭ 124 (-4.62%)
Mutual labels:  debug
Diary
📑 Zero-dependency, fast logging library for both Node and Browser.
Stars: ✭ 79 (-39.23%)
Mutual labels:  debug
Scala Trace Debug
Macro based print debugging. Locates log statements in your IDE.
Stars: ✭ 110 (-15.38%)
Mutual labels:  debug
Xray React
React layout debugger.
Stars: ✭ 128 (-1.54%)
Mutual labels:  debug
Easylauncher Gradle Plugin
Add a different ribbon to each of your Android app variants using this gradle plugin. Of course, configure it as you will
Stars: ✭ 123 (-5.38%)
Mutual labels:  debug
Debug Pack
A Symfony Pack for Symfony debug
Stars: ✭ 1,522 (+1070.77%)
Mutual labels:  debug

var_dump

for python


var_dump is a PHP's var_dump() equivalent function for python. It displays structured information such as type, value etc of a python object, list, tuple, dict & other types.

Installation


using pip

pip install var_dump

Or

clone the project & cd into the python-var_dump directory then run:

python setup.py install

Examples


Example #1:

from var_dump import var_dump

var_dump(123) 					# output: #0 int(123)
var_dump(123.44) 				# output: #0 float(123.44)
var_dump("this is a string") 	# output: #0 str(16) "this is a string"
var_dump(None) # output: 		# output: #0 NoneType(None)
var_dump(True) # output 		# output: #0 bool(True)

Example #2:

you can pass more than one argument:

from var_dump import var_dump

var_dump(123, 123.44, None, False)

Output:

#0 int(123) 
#1 float(123.44) 
#2 NoneType(None) 
#3 bool(False) 

Example #3:

from var_dump import var_dump

class Base(object):

    def __init__(self):
        self.baseProp = (33, 44)
		self.fl = 44.33

class Bar(object):

    def __init__(self):
        self.barProp = "I'm from Bar class"
		self.boo = True


class Foo(Base):

    def __init__(self):
        super(Foo, self).__init__()
        self.someList = ['foo', 'goo']
        self.someTuple = (33, (23, 44), 55)
        self.anOb = Bar()
		self.no = None

foo = Foo()
var_dump(foo)

Output

#0 object(Foo) (6)
    baseProp => tuple(2) 
        [0] => int(33) 
        [1] => int(44) 
    someTuple => tuple(3) 
        [0] => int(33) 
        [1] => tuple(2) 
            [0] => int(23) 
            [1] => int(44) 
        [2] => int(55) 
    no => NoneType(None) 
    someList => list(2) 
        [0] => str(3) "foo"
        [1] => str(3) "goo"
    fl => float(44.33) 
    anOb => object(Bar) (2)
        boo => bool(True) 
        barProp => str(18) "I'm from Bar class"

License: BSD License

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].