Python Disk Usage Calculator
Takes a path as an argument and returns it’s total disk usage recursively.
pip install pdu
usage: pdu [-h] [path]Python Disk Usage Calculator.positional arguments:path A valid path.optional arguments:-h, --help show this help message and exit
path = '/path/to/some/file/or/directory'from pdu import duhuman_readable_size = du(path)from pdu import calcsize_in_bytes = calc(path)from pdu import converthuman_readable_units = convert(bytes)