Skip to main content

Python Disk Usage

Project description


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 du

human_readable_size = du(path)

from pdu import calc

size_in_bytes = calc(path)

from pdu import convert

human_readable_units = convert(bytes)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdu, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pdu-0.0.3-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pdu-0.0.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page