Skip to main content

vardump

Colored Python vardump for CLI

a small wrapper function to output the colored variable prints to the terminal. The peculiarity of the library is that, like in PHP, the var_dump function is in the global scope. You just need to write import vardump in one startup file and then the var_dump function will be available in all modules that you connect to this script.

Installation

pip install varsdump

##Enable

# app.py
import varsdump
import some_controller

...
var_dump(...)
...

##Usage

# some_controller.py

some_obj = {
  'int': 123,
  'str': 'abc',
  'dict': {
    'list': [1,2,3]
  }
}

var_dump(some_obj)

For update use:

pip install vardump --upgrade

Metadata

Release files for varsdump 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for varsdump 1.0.2
File Size Uploaded
varsdump-1.0.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for varsdump 1.0.2
File Interpreter ABI Platform
varsdump-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / varsdump-1.0.2.tar.gz

Download URL varsdump-1.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d72b623d62ab578eeeccd79b957909f4f3a7550cb321bf980b510559e7ed8761
BLAKE2b-256 checksum
How to use checksums
3c231623e3390bcabb189da0a64144d46c4630cb415e22e91575ef531d23a251
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / varsdump-1.0.2-py3-none-any.whl

Download URL varsdump-1.0.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ba5043181c01e0fd033b6ca0fc0d3ffe78f8cb5463b2ae0d3d328327ee29a9a
BLAKE2b-256 checksum
How to use checksums
34995ef69f4e202b827e45f823752d482c3e5ae1ab6db6291d1b062d0eb390f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page