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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: varsdump-1.0.2.tar.gz
  • Upload date:
  • Size: 4.8 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.2.tar.gz
Algorithm Hash digest
SHA256 d72b623d62ab578eeeccd79b957909f4f3a7550cb321bf980b510559e7ed8761
MD5 d8fe5c77e2864a7eeac9190869460cf9
BLAKE2b-256 3c231623e3390bcabb189da0a64144d46c4630cb415e22e91575ef531d23a251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: varsdump-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba5043181c01e0fd033b6ca0fc0d3ffe78f8cb5463b2ae0d3d328327ee29a9a
MD5 ef605271f485a8122ed820fec35ea72b
BLAKE2b-256 34995ef69f4e202b827e45f823752d482c3e5ae1ab6db6291d1b062d0eb390f0

See more details on using hashes here.

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