Cool steven, very helpful
I have a db which holds units data it will avoids me to do such format
conversion.
Thnx
Cheers
Karim
Le 15/05/2012 10:30, Steven D'Aprano a écrit :
I am pleased to announce a new release of byteformat.
http://pypi.python.org/pypi/byteformat
byteformat is a P
I am pleased to announce a new release of byteformat.
http://pypi.python.org/pypi/byteformat
byteformat is a Python module for intelligently formatting numbers of
bytes using common human-readable strings:
>>> from byteformat import format
>>> format(12000)
'12 KB'
>>> format(510, style='