Apr-25-2020, 09:21 PM
The file is not in PyPi repo only setup.py.
The file is still on the web.
Just save save as
The file is still on the web.
Just save save as
humansize.py
and use it as module.>>> from humansize import approximate_size >>> >>> approximate_size(1024) '1.0 KiB' >>> approximate_size(4096) '4.0 KiB' >>> approximate_size(100000) '97.7 KiB' >>> approximate_size(10000000000000) '95.4 MiB' >>> approximate_size(10000000000000) '9.1 TiB'