Utils for handling unit.
pydu.unit.
Bytes
Supply several methods dealing with bytes.
convert
Convert bytes with given unit. If unit is None, convert bytes with suitable unit. Convert multiple is default to be 1024.
unit
multiple
>>> Bytes(1024).convert() (1, 'KB')