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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72b623d62ab578eeeccd79b957909f4f3a7550cb321bf980b510559e7ed8761
|
|
| MD5 |
d8fe5c77e2864a7eeac9190869460cf9
|
|
| BLAKE2b-256 |
3c231623e3390bcabb189da0a64144d46c4630cb415e22e91575ef531d23a251
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ba5043181c01e0fd033b6ca0fc0d3ffe78f8cb5463b2ae0d3d328327ee29a9a
|
|
| MD5 |
ef605271f485a8122ed820fec35ea72b
|
|
| BLAKE2b-256 |
34995ef69f4e202b827e45f823752d482c3e5ae1ab6db6291d1b062d0eb390f0
|