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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file better_variables-0.1.1.tar.gz.

File metadata

  • Download URL: better_variables-0.1.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.9 Windows/10

File hashes

Hashes for better_variables-0.1.1.tar.gz
Algorithm Hash digest
SHA256 44c439f0057c47c99ee7d135017a70783915cce017a6685f819e51bc032813c2
MD5 fa85eb3273c2ada64ba2a4ee121959c1
BLAKE2b-256 320aa53e76a653e33f2bb62b4b80bfad73ac3780159db5f1abaf412714af6815

See more details on using hashes here.

File details

Details for the file better_variables-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for better_variables-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b26c2b7444763ddd0b8d6b981f07bcff45239f319d41c7d5a0da841ea52e6277
MD5 c88f909bcf3e417d4283de0cc2b2cd59
BLAKE2b-256 fc26d7f3e5f2ba2806c7c2cda8596ea9173f912f7617f2e3a36d361a58751f9d

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