Skip to main content

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


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)

Uploaded Source

Built Distribution

better_variables-0.1.1-py3-none-any.whl (2.0 kB view hashes)

Uploaded Python 3

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