zut.human_bytes

zut.human_bytes(value: int, *, unit: str = 'iB', divider: int = 1024, decimals: int = 1, max_multiple: str = None) str

Get a human-readable representation of a number of bytes.

Parameters:

max_multiple – may be K, M, G or T.