blueprints/sql_helpers.py
def id_generator(size=16, chars=string.ascii_uppercase + string.digits):
    """Will generate and return a random 16 character ID

    Params:
    size: The length of the string to generate
    chars: The type of characters to include in the random string

    Returns:
    A random string
    """
    return str(''.join(random.choice(chars) for x in range(size)))
Will generate and return a random 16 character ID

    Params:
    size: The length of the string to generate
    chars: The type of characters to include in the random string

    Returns:
    A random string
    
Will generate and return a random 16 character ID
Params:
size: The length of the string to generate
chars: The type of characters to include in the random string

A random string
Will generate and return a random 16 character ID Params : size : The length of the string to generate chars : The type of characters to include in the random string A random string
def id_generator(size=16, chars=string.ascii_uppercase + string.digits):
    return str(''.join(random.choice(chars) for x in range(size)))
def id_generator ( size = 16 , chars = string . ascii_uppercase + string . digits ) : return str ( '' . join ( random . choice ( chars ) for x in range ( size ) ) )
Will generate and return a random 16 character ID
Params:
size: The length of the string to generate
chars: The type of characters to include in the random string
Will generate and return a random 16 character ID Params : size : The length of the string to generate chars : The type of characters to include in the random string
"""Will generate and return a random 16 character ID

    Params:
    size: The length of the string to generate
    chars: The type of characters to include in the random string

    Returns:
    A random string
    """
size
chars