Skip to main content

A simple library for easy handling of .env files and environment variables configurations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

varsdump-1.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

varsdump-1.0.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page