toolware/utils/generic.py
def get_uuid(length=32, version=1):
    """
    Returns a unique ID of a given length.
    User `version=2` for cross-systems uniqueness.
    """
    if version == 1:
        return uuid.uuid1().hex[:length]
    else:
        return uuid.uuid4().hex[:length]
def get_uuid(length=32, version=1):
    """
    Returns a unique ID of a given length.
    User `version=2` for cross-systems uniqueness.
    """
    if version == 1:
        return uuid.uuid1().hex[:length]
    else:
        return uuid.uuid4().hex[:length]
def get_uuid ( length = 32 , version = 1 ) : if version == 1 : return uuid . uuid1 ( ) . hex [ : length ] else : return uuid . uuid4 ( ) . hex [ : length ]
Returns a unique ID of a given length.
    User `version=2` for cross-systems uniqueness.
Returns a unique ID of a given length . User version = 2 for cross - systems uniqueness .