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 vardump
##Enable
# app.py
import vardump
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
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
varsdump-1.0.1.tar.gz
(4.5 kB
view hashes)