def size_readable_human(size, suffix='B'):
    """Size the bytes into the appropriate format for reading by humans.

    Ex:
        342.246.182 bytes => 326 MB
        37.675.796.098 bytes => 35,0 GB"""

    factor = 1024

    for unit in ['', 'K', 'M', 'G', 'T', 'P']:
        if size < factor:
            return f'{size: .2f}{unit} {suffix}'

        size /= factor