def human_bytes(byte: int, precision: int = 2) -> str:
    """Return a human readable version of the byte amount"""
    kilo_byte = 10 ** 3
    mega_byte = 10 ** 6
    giga_byte = 10 ** 9
    tera_byte = 10 ** 12
    if byte >= tera_byte:
        return f"{round(byte / tera_byte, precision)} TB"
    elif byte >= giga_byte:
        return f"{round(byte / giga_byte, precision)} GB"
    elif byte >= mega_byte:
        return f"{round(byte / mega_byte, precision)} MB"
    elif byte >= kilo_byte:
        return f"{round(byte / kilo_byte, precision)} kB"
    return f"{byte} B"