Working With hurry Filesize in Python

Working With hurry Filesize in Python

In this tutorial, we'll learn how to convert size in python by using "hurry.filesize" library

Instalation

 pip install hurry.filesize

syntax:

 size(size_in_bytes)

example:

 
from hurry.filesize import size
size(11000) #bytes

output:

'10K'