def getBytesSize(bytesIn=0, suffix="B"):
    """
    Scale bytes to its proper format
    e.g:
        1253656 => '1.20MB'
        1253656678 => '1.17GB'
    """
    bytesValue = bytesIn
    if bytesValue is None or 0:
        return int(0)
    elif (isinstance(bytesValue, int) or isinstance(bytesValue, float)) and (int(bytesValue) > 0):
        factor = 1024
        for unit in ["", "K", "M", "G", "T", "P"]:
            if bytesValue < factor:
                return f"{bytesValue:.2f}{unit}{suffix}"
            bytesValue /= factor
        return bytesValue
    return int(0)