No project description provided
Project description
Better Variables
Better Variables is a simple project aiming to offer a better way to manage variables in your projects. It is a simple and easy-to-use library that allows you to manage your variables in a more organized way, adding descriptions, custom function assignation and much more.
Installation
pip install better-variables
Usage
from better_variables import BetterVariable
# Create a new variable
my_var = BetterVariable("Hello World", description="This is my variable")
def reverse_string(value):
return value[::-1]
# Now you can apply a custom function to the variable
my_var_2 = my_var @ reverse_string
# Get the value of the variable
print(my_var_2) # dlroW olleH
# Print the entire variable
print(my_var)
# Variable name: my_var
# Variable type: <class 'str'>
# Variable value: Hello World
# Variable description: This is my variable
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
better_variables-0.1.1.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for better_variables-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26c2b7444763ddd0b8d6b981f07bcff45239f319d41c7d5a0da841ea52e6277 |
|
MD5 | c88f909bcf3e417d4283de0cc2b2cd59 |
|
BLAKE2b-256 | fc26d7f3e5f2ba2806c7c2cda8596ea9173f912f7617f2e3a36d361a58751f9d |