def get_size(size):
    """
    Take an arbitrary number of bytes and parse it into a human readable
    string. Ex: 12GB, 200 bytes, 1ZB
    """
    # Credit to: https://stackoverflow.com/a/1094933
    size = int(size)
    for unit in ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB']:
        if abs(size) < 1024:
            if unit == 'bytes':
                return '{} {}'.format(size, unit)
            return '{:.1f}{}'.format(size, unit)
        size /= 1024
    return '{:.1f}{}'.format(size, 'YB')