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


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 details)

Uploaded Source

Built Distribution

varsdump-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file varsdump-1.0.1.tar.gz.

File metadata

  • Download URL: varsdump-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for varsdump-1.0.1.tar.gz
Algorithm Hash digest
SHA256 579e90820b26fd2193c80ccb4ea74660ee59ed5cfc25cd52de12f12f92306e63
MD5 77a28ba0a19343c7cfd3b2c5e8122426
BLAKE2b-256 93a3247f4146044e4dbaf19f96afc73bfb012336332d8198e371c262eee321a9

See more details on using hashes here.

File details

Details for the file varsdump-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: varsdump-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for varsdump-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d511706ba861d1ca4aa31a09a07066137853bcceea1df5c47b0062f21ae5197
MD5 c668fc26c04b3cbad1db0bea32461bab
BLAKE2b-256 8fc4a7ffe4b491eedbe6df1a060f5a5a762d5c12d9e00e1b16eeaaecfae94a50

See more details on using hashes here.

Supported by

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