Functions | Variables
framework.helpers.rand Namespace Reference

Functions

str rand_string (int length=8, *bool lowercase=False)
 
str random_resource_suffix ()
 

Variables

 ALPHANUM = string.ascii_letters + string.digits
 
 ALPHANUM_LOWERCASE = string.ascii_lowercase + string.digits
 

Function Documentation

◆ rand_string()

str framework.helpers.rand.rand_string ( int   length = 8,
*bool   lowercase = False 
)
Return random alphanumeric string of given length.

   Space for default arguments: alphabet^length
  lowercase and uppercase = (26*2 + 10)^8 = 2.18e14 = 218 trillion.
  lowercase only = (26 + 10)^8 = 2.8e12 = 2.8 trillion.

Definition at line 27 of file rand.py.

◆ random_resource_suffix()

str framework.helpers.rand.random_resource_suffix ( )
Return a ready-to-use resource suffix with datetime and nonce.

Definition at line 38 of file rand.py.

Variable Documentation

◆ ALPHANUM

framework.helpers.rand.ALPHANUM = string.ascii_letters + string.digits

Definition at line 21 of file rand.py.

◆ ALPHANUM_LOWERCASE

framework.helpers.rand.ALPHANUM_LOWERCASE = string.ascii_lowercase + string.digits

Definition at line 24 of file rand.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10